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

[其他] 8月刷题/Mock interview接龙活动(缺米刷题的来)

   关闭
🔗
diligentmarch 2020-8-14 14:28:31 | 只看该作者
全局:
刷了3题:
Reorganize String
Largest Plus Sign
Iterator for Combination

image.png (35.84 KB, 下载次数: 0)

image.png

评分

参与人数 6大米 +7 收起 理由
lic10 + 1 给你点个赞!
zea7ot + 1 给你点个赞!
siranjoy119 + 1 给你点个赞!
Saury + 2 给你点个赞!
Crookshanks + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
zea7ot 2020-8-14 14:32:33 | 只看该作者
全局:
20200808:
new
3: 1286
4:
5:

review
3: 0039, 0040, 0046, 0047, 0056, 0133, 0938, 1498
4: 0023, 0124, 0138, 0269, 0545
5: 0301


image.png (76.52 KB, 下载次数: 0)

image.png

评分

参与人数 4大米 +5 收起 理由
lic10 + 1 给你点个赞!
Saury + 2 给你点个赞!
Crookshanks + 1 给你点个赞!
zxcarrot1 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
Crookshanks 2020-8-14 14:47:26 | 只看该作者
全局:
D7 打卡: implement trie

0813.JPG (22.81 KB, 下载次数: 0)

0813.JPG

评分

参与人数 4大米 +4 收起 理由
lic10 + 1 给你点个赞!
包在我身上 + 1 给你点个赞!
siranjoy119 + 1 给你点个赞!
Saury + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
Saury 2020-8-14 14:56:40 | 只看该作者
全局:
Day 13

1286. Iterator for Combination, 如何用bit map 生成所有的combination
400. Nth Digit, 挺不错的数学题

评分

参与人数 3大米 +5 收起 理由
jimmy322 + 1 给你点个赞!
包在我身上 + 1 给你点个赞!
siranjoy119 + 3 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
siranjoy119 2020-8-14 15:00:45 | 只看该作者
全局:
刷题打卡,8道题
Nth Digit 数数字的个数
Elimination Game 用两个函数相互递归
Rotate Function 这个找通项公式 Fk - Fk-1
Perfect Rectangle 数重复overlap的顶点,要注意也要比较面积,因为会有完全一模一样的input rectangule
Binary Watch 可以用backtrack,但是直接按时间循环更快

WeChat Screenshot_20200813235449.png (40.67 KB, 下载次数: 0)

WeChat Screenshot_20200813235449.png

评分

参与人数 5大米 +8 收起 理由
siranjoy + 2 给你点个赞!
lic10 + 3 给你点个赞!
yzl916 + 1 给你点个赞!
jimmy322 + 1 给你点个赞!
包在我身上 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

全局:
8.13 打卡第11天

最近各种准备oa刷题都少了
两道带distance的bfs,都可以用dp做
飞行棋注意:可以有多个src-》des,所以用map<des, list<src>>
src -> des步数耗费0

Screen Shot 2020-08-14 at 12.27.34 AM.png (26.4 KB, 下载次数: 0)

Screen Shot 2020-08-14 at 12.27.34 AM.png

评分

参与人数 4大米 +5 收起 理由
funfun33 + 2 给你点个赞!
willy2049 + 1 给你点个赞!
yzl916 + 1 给你点个赞!
jimmy322 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
jimmy322 2020-8-14 16:07:55 | 只看该作者
全局:
8.14第14天
一道hard又debug了一天。。
矩阵里找连续最长递增序列。用记忆化搜索。

image.png (33.42 KB, 下载次数: 0)

image.png

评分

参与人数 5大米 +5 收起 理由
lic10 + 1 给你点个赞!
八达鸟 + 1 给你点个赞!
wznfls + 1 给你点个赞!
willy2049 + 1 给你点个赞!
yzl916 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
yzl916 2020-8-14 16:41:08 | 只看该作者
全局:
8月第11天打卡~

d11.png (280.46 KB, 下载次数: 0)

d11.png

评分

参与人数 4大米 +4 收起 理由
TimLee + 1 给你点个赞!
八达鸟 + 1 很有用的信息!
wznfls + 1 给你点个赞!
willy2049 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
willy2049 2020-8-14 17:09:53 | 只看该作者
全局:
第二天打卡
加上我对first missing positive的notes
O(n) time and O(1) space
        we first find if 1 exists in this list, if it doesn't, simply return 1
        when we are iterating the first time, we can turn all the numbers <= 0 and > n to 1
        since that we know if 1 exists, setting these numbers to 1 will be safe
        reason we still set numbers > n to 1 is because this list can only contain 1...n elements
        which means if a number is > n, our return integer will be in 1...n by pidgeon hole principle
        
        in the next loop, we negate the nums[value] to indicate that we have seen this number
        remember to use abs(value)-1 because
        1. the current value can be negative because some other number has negated this value
        2. -1 because array starts from 0 to n-1 but our values are from 1 to n
        
        in the last iteration, we set the starting point to 2, and see if any point from low-1
        is negative. if so, return low
        we will return low outside of the while loop in case 2 or n+1 is the answer

Screen Shot 2020-08-14 at 3.56.54 AM.png (161.89 KB, 下载次数: 0)

Screen Shot 2020-08-14 at 3.56.54 AM.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
craneyuan 2020-8-14 22:36:18 | 只看该作者
全局:
打卡第40天 2020.08.14
669. 修剪二叉搜索树
700. 二叉搜索树中的搜索
671. 二叉树中第二小的节点
872. 叶子相似的树
897. 递增顺序查找树
687. 最长同值路径
965. 单值二叉树
993. 二叉树的堂兄弟节点

评分

参与人数 2大米 +2 收起 理由
ImRed + 1 给你点个赞!
wznfls + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

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

本版积分规则

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