谷歌 SDE1 上门

第一轮

  • Given a grid and you’re allowed to move right and up. Find the shortest path from point A to point B.
  • Given a grid and you’re allowed to move right and up. Find all possible ways to reach from point A to point B.
  • You’re in 2D plane, you can move as per following rules:
    x + 1, y + 1
    x + 1, y - 1
    x + 1, y
    Find no of ways to go from 0, 0 to w, 0

第二轮 Behavioral Round

  • When did you have a conflict with your manager ?
  • The most complex feature you’ve built ?
  • Your strength’s and weaknesses.
  • If somebody on your team refuses to attend meetings at night, how will you handle it ?
  • If your team is out of ideas, how will you try to bring new ideas ?
  • One person who’ve influenced you and you look upto him ?

第三轮

  • You’re given M stacks of coins, you’ve to pick N coins. Find the maximum value you can take.
  • You’re playing a game where you can choose the node of a tree. Once you choose a node the other opponent cannot choose the children of that node. The one with the most nodes wins.

第四轮

  • The problem boiled down to walks in a graph. If a node appears twice in a walk in a graph then it’s called a critical node. Find all such nodes.
  • You’re given a transformation rules which defines what letters can come after a letter.
  • a - ei
  • e - i
  • i - aeiou
  • o - u
  • u - aeio
    You’re given a number N. Find all the words can be generated using above rule with length N. For eg. 3 length words can be ‘aei’ or ‘oue’ etc.
1 个赞

因为一年半前面过狗家,过了hc,team match都ok了,楼主都准备收拾包袱去上班了,最后被VP挂了,惨。。。理由是performance不consistent,可能有一轮feedback不是很好。所以这次家直接onsite,然而。。

第一轮 国人大哥,人很nice,然而出得题很少见,设计一个树的数据结构,完成一系列操作
删除左邻居,删除右邻居,插入一个结点,删除一个结点。话很少,就是让写。。
第二轮 烙印,typeahead,返回前K个。就是用trie 解决,很常见的题目
第三轮 国人小哥,英语一般。。有些交流困难,valid parentheses,follow up 如果这个string很长,无法存在一台机子上怎么办,如何提高算法的效率
第四轮 烙印 统计log里单词的数目,返回top k
第五轮 BQ,相聊甚欢