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

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

     关闭
🔗
edsot 2020-6-23 06:08:24 | 只看该作者
全局:
6.22 day23
127 medium 加上一些辅助函数就是最基础的bfs,生成nextWord的方式,需要根据数据规模的变化来决定
126 hard bfs+dfs 先bfs确定最短长度,再逆向dfs找最短路径
133 medium 又是万能的hashmap

Screen Shot 2020-06-22 at 5.07.28 PM.png (69.26 KB, 下载次数: 0)

Screen Shot 2020-06-22 at 5.07.28 PM.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
ztamber 2020-6-23 05:43:53 | 只看该作者
全局:
打卡第17天
06/22
笔记在这边

https://www.1point3acres.com/bbs/thread-635271-1-1.html
(出处: 一亩三分地)

• Missing number (unsorted)
• Single Number II / Single Number
• Single Number III
• Binary Number with Alternating Bits
回复

使用道具 举报

🔗
AnnabelleAPZK 2020-6-23 05:17:10 | 只看该作者
全局:
Day 14
Today I did a mock interview with a friend, here are some of the advices he gave me:
1. improve overall problem solving speed by 25% - this can be achieved by ensuring I can write brute force dfs/bfs/topo solution in 5 - 10 minutes to save the time for optimizing the solution.
2. Make sure I can answer time complexity related questions within 30 seconds - I think this can be achieved by doing time complexity analysis practices.
3. Do more graph problems and hashtable manipulation problems, make myself comfortable with using hashtables to reduce runtime.

评分

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

查看全部评分

回复

使用道具 举报

🔗
liuyubo1121 2020-6-23 00:06:44 | 只看该作者
全局:
做了5道binary search的题目,有两道简单的,算是复习和巩固一下自己的知识点吧

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

image.png
回复

使用道具 举报

🔗
lenash 2020-6-22 23:55:36 | 只看该作者
全局:
6.22 打卡三题

Screen Shot 2020-06-22 at 10.53.13 AM.png (17.03 KB, 下载次数: 0)

Screen Shot 2020-06-22 at 10.53.13 AM.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
jake_li 2020-6-22 23:53:11 | 只看该作者
全局:
总共第13天,今天被问到一个binarySearch题,一开始没想到,但给出了一个O(n)的解,面试官要提高,其实这里我就应该立刻想到用binarysearch了,因为只能是O(logn), 但我一下子没想好怎么实现binarySearch, 就转向胡思乱想别的解法了。这个经验还挺有价值的,O(n)还要提高就立刻往binarySearch想。

评分

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

查看全部评分

回复

使用道具 举报

全局:
06.21 打卡第十天 刷题第十天
第十天未被加米了,楼主救我!

Leetcode:
724. Find Pivot Index

Mindset: Prefix sum
find the sum first then linear scan from leftMost to rightMost again
compare with two sums and get a conclusion.

561. Array Partition I

Mindset: sort it first then we can sum up all the even(index) number;

Binary Search

3.Classical Binary Search
Use two pointers
always maintain a size >= 2 searching range
then post-processing

4.First Occurance
if (array[left] <= target) {
  left = mid;
}
the left pointer does not jump through mid
Right pointer jump one for the right;

5.Last Occurance
similarliy:
if (array[right] >= target) {
  right = mid;
}
the right pointer does not jump through mid
left pointer jump one for the left;

6. Find the Floor/Ceiling in a sorted array

watch out for the corner case, which is all the element is larger than target, so can not find Floor, return -1;
watch out for the corner case, which is all the element is smaller than target, so can not find Ceiling, return -1;

7.Search in sorted unknown sized array

Handle the right side of the case, watch out for the mid or right would point to null;

评分

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

查看全部评分

回复

使用道具 举报

🔗
一笑逢 2020-6-22 22:33:50 | 只看该作者
全局:
第一天打卡,刷了三道题。都是动态规划的内容,现在已经比较有经验了,主要都分为三步:1. 定义 dp 数组;2. 找到 base case;3. 找到状态转移方程。

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

6.22 刷题

6.22 刷题

评分

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

查看全部评分

回复

使用道具 举报

🔗
wdk2000 2020-6-22 22:11:09 | 只看该作者
全局:
day 11 #sql
1. explain 查看执行计划
2. 创建表default()
3. insert into values (), ()/ insert or ignore into...如果存在即忽略
4. 创建新表并导入其他表数据create table... (as) select... from...


评分

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

查看全部评分

回复

使用道具 举报

全局:
打卡第八天刷了3个题,1个easy1个medium1个hard
(版主前七天都没加米,第一天在1053楼,第二天在1111楼,第三天在1166,第四天1234,第五天1286,第六天1327,第七天1385, 求加米!!QAQ)

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

image.png

评分

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

查看全部评分

回复

使用道具 举报

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

本版积分规则

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