楼主: 202109
跳转到指定楼层
上一主题 下一主题
收起左侧

打卡

🔗
 楼主| 202109 2021-10-29 15:31:14 | 只看该作者
全局:
10.29
Q: passed in as a parameter or make as a class member?
回复

使用道具 举报

🔗
 楼主| 202109 2021-10-31 12:28:27 | 只看该作者
全局:
本帖最后由 202109 于 2021-10-30 21:29 编辑

10.30
一场mock
看一下s司的帖子,了解下它们screnning的流程
把set的疑惑点搞清楚(robot vs stones)
做三道题permutation2看一下别人的答案
回复

使用道具 举报

🔗
estellehaha 2021-11-1 04:30:25 | 只看该作者
全局:
10.30
Move Zeroes
Permutations II
mock 了一场
回复

使用道具 举报

🔗
 楼主| 202109 2021-11-1 07:55:22 | 只看该作者
全局:
10.31
mock了一场
Valid Square
Rotating the Box

补充内容 (2021-11-01 10:20 +8:00):
Flatten Binary Tree to Linked List

补充内容 (2021-11-01 11:24 +8:00):
17. Letter Combinations of a Phone Number

补充内容 (2021-11-01 13:44 +8:00):
Rank Teams by Votes

补充内容 (2021-11-01 13:56 +8:00):
Kth Largest Element in an Array
回复

使用道具 举报

🔗
 楼主| 202109 2021-11-3 16:34:34 | 只看该作者
全局:
11.2
Nested List Weight Sum
Nested List Weight Sum II
Valid Parentheses
Factor Combinations
mock 了一场
回复

使用道具 举报

🔗
 楼主| 202109 2021-11-4 10:53:42 | 只看该作者
全局:
11.3
Valid Parentheses
Merge Intervals
Maximum Product Subarray
Maximum Subarray
回复

使用道具 举报

🔗
 楼主| 202109 2021-11-7 06:24:16 | 只看该作者
全局:
11.4
Implement Trie (Prefix Tree)
回复

使用道具 举报

🔗
 楼主| 202109 2021-11-7 07:08:27 | 只看该作者
全局:
总结一下解体思路:
step1 : 先自己想不同的test cases -> 其实也是为了了解题目
step2: 从给的,和自己想的test cases开始,从 brute force 出发,一步一步分析用什么 ds 和 algo
step3:用 step2 的方法去跑 test cases;有时间的话,简单说下 complexity
step4:开始写,边写边说
step5:用 step4 写的 code 再跑一遍 test cases
回复

使用道具 举报

🔗
 楼主| 202109 2021-11-7 07:58:27 | 只看该作者
全局:
tree:

q1: when choose the base case of the recursion, null node or the node without children?

补充内容 (2021-11-08 13:21 +8:00):
a1: depends on the case
case1: return a list of leaf nodes, then the base case should be node without children
case2: other
回复

使用道具 举报

🔗
 楼主| 202109 2021-11-8 13:39:37 | 只看该作者
全局:
mock 的总结
1. try to think of all test cases
2. when interviewer try to give hints, take it!
3. when declare a var, write down 3.1) the meaning (definition) / name it so it is self-explaining and 3.2) an example
4. when declare a function, write down 4.1) signature (input, output, function name) and 4.2) the major steps
回复

使用道具 举报

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

本版积分规则

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