注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
10/08/2024 schedule interview-baidu 1point3acres
10/28/2024 3 coding & 1 bq. 1point3acres
coding No.1 (面试官国人大哥)
Given an array arr, find arr[i] - arr[j] = i - j, return numbers of pairs
first brute force then use hashmap for optimization.
. Waral dи,
coding No.2 (印度哥)
Given an array of slots[start, end], find a period that everyone is available. Note slots indicate unavailable hours
use prefix
coding No.3 (国人小姐姐). ----
Design a class hasDuplicate which has addNum(int num) and hasDuplicate(), return if the added list of numbers has duplicates
first use queue and hashset, optimized it by using hashtable
bq round
general questions:
what will you do if a team mate doesn't get along.--
your most fun project. Waral dи,
a challenging coding experience
one time exceed expectation
.google и
在此很感谢第三轮的国人小姐姐,在面试过程中非常helpful!可以感觉到小姐姐真的一直在启发我如何写出好的优化,甚至早点结束面试给我调整时间准备下一轮,在这一轮真的可以感受到国人的帮助!希望会有好的结果!
.google и
补充内容 (2024-11-09 06:43 +08:00):. .и
Update:
11/08/2024 hc加面coding轮
题目就是简单的post order. Return all leaf nodes without modifying the tree. Also return the node immediately if all its chlilren are visited.
follow up: return all leaf nodes first (bfs).
感觉这轮面的非常一般,follow up只是口头说了用bfs。面试官一开始把问题复杂化了,一直在强调直接返回已经遍历过所有孩子的node(不要管其他子树的叶子node),同时也没有说清楚result应该是一个数组,而不需要考虑二维数组(每一层一个数组)。
这导致这个问题花了太多时间,走了不少弯路(实际就是简单的post order dfs),后面的follow up我的想法还停留在遍历时返回层数记录,最后一刻想到直接bfs就好了(加面轮太紧张了)。
这轮感觉非常一般,而且听hr说24ng所有面试都在这一周截止(hc可能没多少了),基本感觉过不了了。. Χ
补充内容 (2024-11-16 06:58 +08:00):
11/15 hr邮件通知hc approved,开始team match |