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

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

     关闭
🔗
jerryzzf 2020-6-21 08:10:37 | 只看该作者
全局:
jerryzzf 发表于 2020-6-11 06:29
连续第 7 天打卡,完成 3 道 Design, Two Pointers, Binary Search题:(1/3)
1. LRU Cache
2. Is Subsequ ...

楼主求加米~~~~~~漏掉了
回复

使用道具 举报

🔗
jerryzzf 2020-6-21 08:10:24 | 只看该作者
全局:
jerryzzf 发表于 2020-6-9 14:33
连续第 6 天打卡,完成 5 道 Binary Search, Bit Manipulation, Trie, Design, DFS 题:
1. Power of Two
...

楼主求加米~~~~~~漏掉了
回复

使用道具 举报

🔗
jerryzzf 2020-6-21 08:10:07 | 只看该作者
全局:
jerryzzf 发表于 2020-6-7 13:25
连续第 5 天打卡,完成 3 道 Binary Search, Divide & Conquer, Sort 题:
1. Find Index Equals Value
...

楼主求加米~~~~~~漏掉了
回复

使用道具 举报

🔗
jerryzzf 2020-6-21 08:08:07 | 只看该作者
全局:

连续第 13 天打卡,完成 4 道 Sort, Two Pointers 题:(4/4)
1. Merge Intervals
2. Teemo Attacking
3. Partition Labels
4. Interval List Intersections

Tips 总结:
1. These problems are typical examples of "merge interval questions" which are now quite popular in Google;
2. Typically such problems could be solved in a linear time in the case of sorted input, like "Teemo Attacking", "Interval List Intersections";
3. Otherwise, such problems could be solved in O(NlogN) time (due to sorting preprocessing), like "Merge Intervals".

Screen Shot 2020-06-20 at 4.57.42 PM.png (205.27 KB, 下载次数: 0)

Screen Shot 2020-06-20 at 4.57.42 PM.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
lynkemf 2020-6-21 07:39:00 | 只看该作者
全局:
打卡第20天

Screen Shot 2020-06-20 at 16.38.25.png (133.04 KB, 下载次数: 0)

Screen Shot 2020-06-20 at 16.38.25.png
回复

使用道具 举报

🔗
kfan4372 2020-6-21 07:05:59 | 只看该作者
全局:
打卡第二天,七题~

6.20.PNG (24.76 KB, 下载次数: 2)

6.20.PNG

评分

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

查看全部评分

回复

使用道具 举报

🔗
ztamber 2020-6-21 05:28:35 | 只看该作者
全局:
06/20

        • Palindrome Permutation
                if odd number > 2 -> False


        • Permutation Sequence
                ○ Sol1 DFS + recrusive
                        • list all permutations and count k
                        • be careful with permutations order, can't use swap, eg. 321 should be generated after 312
                                                                        w Need to use s store the current str, rest store the left str
                        • improve time complexity:
                                □ if self.k > math.factorial(len(res) - 1): continue
                        • Time O(n)
                ○ Sol2 Math
                        •  use a loop to check the region that the sequence number falls in and get the starting digit
                        • then we adjust the sequence number and continue. (can not swap, delect handled number)
                                □ k -= 1 -> the first permutation is itself
                                □ index, k = divmode(k, math.factorial(n)),       index -> the index of the digit need to add to permutation
                        • Time O(n)
                               

        • Print all permutations of a string (with duplicate letters)
                ○ use hashset for deduplication:
                        If use only one HashSet in the main function     Space O(n!)
                        Defined at each call - stack level           Space O(n^2)
                ○ Sol1 recursive String + Reorder O(n^2)
                ○ Sol2 recursive list + Swap O(n!)
               
回复

使用道具 举报

🔗
lswalker 2020-6-21 03:28:23 | 只看该作者
本楼:
全局:
打卡 day 19

Screen Shot 2020-06-20 at 12.27.16 PM.png (57.29 KB, 下载次数: 0)

Screen Shot 2020-06-20 at 12.27.16 PM.png

评分

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

查看全部评分

回复

使用道具 举报

🔗
abct 2020-6-21 03:09:05 | 只看该作者
全局:
今天的六题,已经连续五天,总共十天做题啦


评分

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

查看全部评分

回复

使用道具 举报

🔗
cocaptainco 2020-6-21 02:01:09 | 只看该作者
全局:
打卡第一天,求加大米

Screen Shot 2020-06-20 at 11.00.26 AM.png (263.49 KB, 下载次数: 0)

Screen Shot 2020-06-20 at 11.00.26 AM.png

评分

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

查看全部评分

回复

使用道具 举报

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

本版积分规则

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