1967. 作为子字符串出现在单词中的字符串数目

5 篇文章 0 订阅
5 篇文章 0 订阅
class Solution(object):

  def numOfStrings(self, A, B):

    """

    :type patterns: List[str]

    :type word: str

    :rtype: int

    """

    ans = 0

    for a in A:

      if a in B:

        ans += 1

    return ans

作者:Jack

链接:https://leetcode.cn/problems/number-of-strings-that-appear-as-substrings-in-word/solutions/1964721/by-jack-oi-s14f/

来源:力扣(LeetCode)

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

95d453bb6547266768055d946704ae97.jpeg

简书: https://www.jianshu.com/u/cfced7c674af 

百家号: https://author.baidu.com/home?context=%7B"uk"%3A"gwgdi7wwHjLdUhWhLZ_sJw"%7D

B站1:  https://space.bilibili.com/649661852

B站2: https://space.bilibili.com/1924307045

西瓜视频1: https://www.ixigua.com/home/5843340996?list_entrance=studio&wid_try=1

西瓜视频2: https://www.ixigua.com/home/1635680166351767?list_entrance=studio&wid_try=1

企鹅号: https://media.om.qq.com/author?id=MeLRdnnZ7sVGrh6uR6MwXPGg0

快手1: https://www.kuaishou.com/profile/3xsshqc8ftwwchy

快手2: https://www.kuaishou.com/profile/3xznzpw8uarf23c

知乎1: https://www.zhihu.com/people/zyx-93-83/zvideos

知乎2: https://www.zhihu.com/people/49-38-77-61-35/zvideos

搜狐视频: https://tv.sohu.com/user/398416206#t0

好看视频: https://haokan.baidu.com/author/1749087353945237

豆瓣1:https://www.douban.com/people/220149171/?_i=8275562lEWOkUe

豆瓣2:  https://www.douban.com/people/264323900/?_i=8275667-gEBisQ

小红书1:https://www.xiaohongshu.com/user/profile/633d7b25000000001802f02c

小红书2: https://www.xiaohongshu.com/user/profile/6038a744000000000100bfc0

CSDN: https://blog.csdn.net/weixin_63044430?spm=1010.2135.3001.5343

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值