12
返回列表 发新帖
楼主: lyoaix
跳转到指定楼层
上一主题 下一主题
收起左侧

Yelp 电面

🔗
 楼主| lyoaix 2016-10-2 13:54:50 | 只看该作者
全局:
whitney94 发表于 2016-10-2 12:08
能问一下楼主具体data mining的方面问了什么吗,谢谢啦~

就是大概问了一些machine learning你怎么提取features 怎么预测这些吧
回复

使用道具 举报

🔗
whitney94 2016-10-3 09:41:26 | 只看该作者
全局:
lyoaix 发表于 2016-10-2 13:54
就是大概问了一些machine learning你怎么提取features 怎么预测这些吧

谢谢楼主呀~~那是要回答一些algorithm么~
回复

使用道具 举报

🔗
 楼主| lyoaix 2016-10-3 12:30:01 | 只看该作者
全局:
whitney94 发表于 2016-10-3 09:41
谢谢楼主呀~~那是要回答一些algorithm么~

差不多吧
回复

使用道具 举报

🔗
qiu_cqupt 2016-10-18 09:14:51 | 只看该作者
全局:
多谢面经
  1. class Solution(object):
  2.     def wordBreak(self, s, wordDict):
  3.         """
  4.         :type s: str
  5.         :type wordDict: Set[str]
  6.         :rtype: bool
  7.         """. 1point3acres
  8.         dp = [False]*len(s)

  9.         for i in range(len(s)):
  10.             for j in range(i,len(s)):
  11.                 if i==0 and s[i:j+1] in wordDict:
  12.                     dp[j] = True
  13.                 elif dp[i-1]==True and s[i:j+1] in wordDict:
  14.                     dp[j] = True

  15.         return dp[-1]
复制代码


.1point3acres
  1. class Solution(object):
  2.     def wordBreak(self, s, wordDict):
  3.         """
  4.         :type s: str
  5.         :type wordDict: Set[str]
  6.         :rtype: bool
    . 1point 3acres
  7.         """. 1point 3acres
  8.         dp = [False]*(len(s)+1)
  9.         dp[0]=True

  10.         for i in range(len(s)+1):. check 1point3acres for more.
  11.             for w in wordDict:. Waral dи,
  12.                 l = len(w)
    ..
  13.                 if l<=i and s[i-l:i]==w:
  14.                     dp[i] = dp[i-l] or dp[i]
  15.         return dp[-1]
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表