📣 独立日限时特惠: VIP通行证立减$68
楼主: nancyberry
跳转到指定楼层
上一主题 下一主题
收起左侧

整理了Google一些最新高频面经题,求大神指教

   
🔗
UCLA_andy 2018-6-29 09:06:07 | 只看该作者
全局:
random_zero 发表于 2018-6-11 03:02
第七题直接塞糖果就好,如果按行塞你只需要检查左和上没有连续三个即可,塞完检查是否存在至少一个move,不 ...

是不是有点像N皇后的题目?
回复

使用道具 举报

🔗
UCLA_andy 2018-6-29 09:29:26 | 只看该作者
全局:
sally805 发表于 2018-6-12 14:55
借楼主的帖子再发几个我不太清楚的面经题,希望高人指点一下,也希望能帮到各位同学

8. 产品中要monit ...

8: 如果是系统设计,可以用map reduce,如果是数据结构的话,感觉可以用BST来存(时间,个数)

9:感觉就是BFS走格子,turn对应四个方向

10:目前只想到了暴力解法,等待大神更新。
回复

使用道具 举报

🔗
UCLA_andy 2018-6-29 09:29:44 | 只看该作者
全局:
sally805 发表于 2018-6-12 14:55
借楼主的帖子再发几个我不太清楚的面经题,希望高人指点一下,也希望能帮到各位同学

8. 产品中要monit ...

8: 如果是系统设计,可以用map reduce,如果是数据结构的话,感觉可以用BST来存(时间,个数)

9:感觉就是BFS走格子,turn对应四个方向

10:目前只想到了暴力解法,等待大神更新。
回复

使用道具 举报

🔗
daniel_dc 2018-6-30 02:22:50 | 只看该作者
全局:
Thanks!!!! Helpful!!!
回复

使用道具 举报

🔗
010nothing 2018-6-30 13:17:32 | 只看该作者
全局:
好棒,给你点赞
回复

使用道具 举报

🔗
偏执狂 2018-9-4 10:56:06 | 只看该作者
全局:
数**渣会被屏蔽吗?第六题里的星号……
回复

使用道具 举报

🔗
yzhengk 2018-9-5 08:18:21 | 只看该作者
全局:
我看最近G家都没考这些题啊
回复

使用道具 举报

🔗
hlckl123456 2018-9-6 06:10:45 | 只看该作者
全局:
为第五题写了一个英文的板书
Solution: BFS Graph
1.Use BFS graph to solve this problem:
        a.        sort the wood by y
        b.        Create a queue and add start start point into it
        c.  create a distance map to store the distance from each point
        d.        start BFS, each time, find the wood the point dropped.
        e.        Update the distance of two side of the wood, also add the two points in to queue for new drop
        f.        update the min_path, when it drop on the ground

2.Init:
        a.        distance = {}     {point, distance for come to this point}
        b.        queue = []  start from start point, each time add two point into

3.Answer:
        if no point can be added, means we come to the end
        return min_path = min(min_path, current_path)


回复

使用道具 举报

🔗
oo小天使oo 2018-9-29 02:18:58 | 只看该作者
全局:
求问楼主~~随机生成一个candy crush这道题目的思路 感恩
回复

使用道具 举报

🔗
chaseqi 2018-10-12 11:30:22 | 只看该作者
全局:
感觉第五题可以抽象成 binary tree, 求从根结点到叶子节点的最短距离
回复

使用道具 举报

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

本版积分规则

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