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

[其他] 7月缺米的来刷题/Mock interview活动

   
🔗
SHALLWEFZUW 2020-7-28 12:02:05 | 只看该作者
全局:
再忙也要刷俩题。。 最近在准bei面试Wish。。good luck to me

Screen Shot 2020-07-28 at 12.01.00 AM.png (57.63 KB, 下载次数: 0)

Screen Shot 2020-07-28 at 12.01.00 AM.png

评分

参与人数 3大米 +3 收起 理由
成电小仙女 + 1 给你点个赞!
saberda + 1 给你点个赞!
DL + 1 欢迎分享你知道的情况,会给更多积分奖励!

查看全部评分

回复

使用道具 举报

🔗
DL 2020-7-28 12:05:51 | 只看该作者
全局:
7/27 打卡第27天, 刷了3道题

134. Gas Station
找出i,从i开始连续tank中gas>=0, 一旦<0, 重新清0计数

349. Intersection of Two Arrays
set

350. Intersection of Two Arrays II
Hash table

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

image.png

评分

参与人数 3大米 +3 收起 理由
Jiangbi + 1 给你点个赞!
成电小仙女 + 1 给你点个赞!
saberda + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
saberda 2020-7-28 12:19:33 | 只看该作者
本楼:
全局:
今天的题

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

image.png
回复

使用道具 举报

全局:
这学期可快结束吧..就有空刷题了

评分

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

查看全部评分

回复

使用道具 举报

🔗
Jiangbi 2020-7-28 12:42:39 | 只看该作者
全局:
菜鸡七月第二十八天

七月为什么过得这么快,感觉啥也没干
1. construct binary tree from inorder and postorder traversal: july challenge里面的,用recursive helper function,
    同时记postorder的index,和inorder里面的start&end,每次在inorder里面找到当前postorder的value,记下当前
    index,之后再找node.left和node.right
2. construct binary tree from preorder and postorder traversal: 和之前一样也是记下一些indices,找到preorder当前
    的node,然后根据is和当前index找node的children的indices,感觉还是不太会
3. minimum remove to make valid parentheses: 先把string转成stringbuilder,再用stack检查括号对不对,如果有不
    match的就把当前的char标成"*",最后把所有*都去掉
4. shortest unsorted continuous subarray: 用max和min分别记从左右开始的extrema,如果nums[i]小于当前max的话,
    unsorted array最起码要end here,同时如果nums[n - 1-  i]大于当前min的话,说明array最起码从此开始
5.  find pivot index: 复习一下,先算sum,每次再算cumulative sum, 如果能找到cumsum - nums[i] = sum - cumsum
     的话,就是pivot index

submissions.PNG (39.33 KB, 下载次数: 0)

submissions.PNG

评分

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

查看全部评分

回复

使用道具 举报

🔗
JLSeagull 2020-7-28 13:22:22 | 只看该作者
全局:
07/28

二维数组中的查找借鉴二分 从左下角开始判断当前与target大小比较
超过5名学生的课 sql基本操作 刚好复习一下
到最近人最大距离 类似于动态规划 可以遍历得到左侧 右侧最大距离 然后在比较一遍

image.png (100.45 KB, 下载次数: 2)

image.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
saberda 2020-7-28 13:29:32 | 只看该作者
全局:
把前些天的题复习一下

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

image.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
lic10 2020-7-28 13:53:22 | 只看该作者
全局:
day 11打卡:在市郊的小镇上wfh 而且每天刷题打卡,是不是也可以被称为“小镇做题家”?
求加米,必回加。一起加油!

Screen Shot 2020-07-27 at 10.51.38 PM.png (137.09 KB, 下载次数: 0)

Screen Shot 2020-07-27 at 10.51.38 PM.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
Saury 2020-7-28 13:55:56 | 只看该作者
全局:
Day 17

106. Construct Binary Tree from Inorder and Postorder Traversal, in order, post order, pre order之间的关系
398. Random Pick Index, 挺有意思的题 主要是考察Reservoir sampling 可以random sample但是不需要事先知道collection长度的一个online sampling algo
1477. Find Two Non-overlapping Sub-arrays Each With Target Sum, dp + 2 sum的结合

评分

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

查看全部评分

回复

使用道具 举报

🔗
TianjinDora 2020-7-28 13:56:28 | 只看该作者
全局:
刷了5题 求米!

Screen Shot 2020-07-27 at 10.55.31 PM.png (66.94 KB, 下载次数: 0)

Screen Shot 2020-07-27 at 10.55.31 PM.png

评分

参与人数 4大米 +4 收起 理由
lic10 + 1 给你点个赞!
diligentmarch + 1 给你点个赞!
chrisjing + 1 给你点个赞!
fnwjkm + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

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

本版积分规则

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