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

[其他] 缺大米的请参加这个刷题/Mock interview活动

     关闭
🔗
edsot 2020-6-24 08:31:30 | 只看该作者
全局:
6.23 day24
139 medium trie + memorization 不memo的话会TLE
140 hard trie + memo 这题其实可以不用trie,直接用startsWith(),bottleneck在于memo
143 medium 指针转换题就几个基本模块来回组合,想复杂了反而做不出来

Screen Shot 2020-06-23 at 7.30.19 PM.png (107.38 KB, 下载次数: 1)

Screen Shot 2020-06-23 at 7.30.19 PM.png

评分

参与人数 1大米 +3 收起 理由
dobbin + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
kfan4372 2020-6-24 08:02:14 | 只看该作者
全局:
打卡第五天,6题

6.24.PNG (29.06 KB, 下载次数: 1)

6.24.PNG

评分

参与人数 1大米 +3 收起 理由
dobbin + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
abyss 2020-6-24 07:17:15 | 只看该作者
全局:
6/23/20

994        Rotting Oranges
BFS, 类似另一道题Zombie in Matrix

981        Time Based Key-Value Store
Hash map + Binary Search
题目里说明里set调用时timestamp单调递增,set直接append,get用binary search

1060        Missing Element in Sorted Array
Binary search, 注意边界条件

image.png (5.88 KB, 下载次数: 4)

image.png

评分

参与人数 1大米 +3 收起 理由
dobbin + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
atlas1997 2020-6-24 05:39:28 | 只看该作者
全局:
6.23 打卡6道DP+1道堆

WX20200623-173838@2x.png (237.37 KB, 下载次数: 1)

WX20200623-173838@2x.png

评分

参与人数 1大米 +3 收起 理由
dobbin + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
jake_li 2020-6-24 05:18:33 | 只看该作者
本楼:
全局:
第14天。

评分

参与人数 1大米 +3 收起 理由
dobbin + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

全局:
Day 15
昨天晚上又做了个mock interview,总结一下:
1. 在听完问题后应该花3分钟左右问问题和考虑edge cases,但是超过5分钟就没有必要了,毕竟也要为做题留充足的时间。
2. Interviewer可能会问到一些data structure知识点,可以简单复习一下。比如说我昨天被问到adjacency list和adjacency matrix。
3. 想问题的时候无论想的对不对,都应该把心里正在想的东西说出来。尽量不要超过一两分钟不说话吧。
然后我这几天还得继续提高解比较简单题的速度,和分析时间复杂度的速度。

评分

参与人数 1大米 +3 收起 理由
dobbin + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
liuyubo1121 2020-6-24 04:45:02 | 只看该作者
全局:
本帖最后由 liuyubo1121 于 2020-6-24 04:48 编辑

坚持12天了。今天做了3道BFS的题目, 就是重新熟练一下BFS的解题方法和如何用Queue实现BFS。

image.png (78.2 KB, 下载次数: 1)

image.png
回复

使用道具 举报

🔗
zea7ot 2020-6-24 02:34:48 | 只看该作者
全局:
20200622:
3: 0137, 1080, 1245, 1273, 1339, 1448, 1475
4: 0979
5:

image.png (86.62 KB, 下载次数: 1)

image.png
回复

使用道具 举报

🔗
rockwtr 2020-6-24 00:58:41 | 只看该作者
全局:
本帖最后由 rockwtr 于 2020-6-24 01:03 编辑

First day to brush leetcode to solve 6 problems in a day.
Tips:
1. When leetcode responds too slow, do NOT wait for the submission/running result; Go for another problem;
2. When counting and decreasing ints, check if we can decrease more than 1 in one operation;  E.g., LC1296.
3. When increase/decrease a batch of elements, try to achieve time O(1) instead of O(n). E.g., LC1381.

my - Profile - LeetCode - Chromium_002.png (89.62 KB, 下载次数: 3)

my - Profile - LeetCode - Chromium_002.png
回复

使用道具 举报

全局:
06.22 刷题第十一天 打卡第十一天
刷题12道

1-1281. Subtract the Product and Sum of Digits of an Integer
Mindset:
two variables and a for loop so we can get the answer

2-724. Find Pivot Index
Mindset: Prefix sum
then when we update the i, leftsum were supposed to updated too!

3-1304. Find N Unique Integers Sum up to Zero
Mindset: Handle this question in terms of even or an odd number
quiet straight forward.

4-217. Contain duplicates I
Mindset:
use HashSet then linear scan

5-219. Contain duplicates II
Mindset:
Same, use HashSet then linear scan

6-220. Contain duplicates III
Mindset:
Bucket sort

7-665. Non-decreasing Array
Mindset:
Greedy
there are two approaches to changing this element
change the current one or change the former one(i - 1)

Also, I need to use an int variable to save change times

8-Longest square surrounded by one

2*2D - matrix DP
find the longest edge and then check two corners(leftBottom and rightTop)

9-longest common string
find two common strings by using
A-2D matrix DP
use start int variable and end variable

10-longest common subsequence
similar to 9

11-Leetcode 986 interval List Intersection && 12- Follow up
set up new class

class Intersect{
   int start;
   int end;
}

return a list of Intersect

12-Follow up
check each intersect
to see if any intersect we can schedule a meeting with a manager which at least last for x mins

楼楼大大,最近11天都没有拿到大米,求米求米!!

评分

参与人数 1大米 +3 收起 理由
dobbin + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

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

本版积分规则

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