📣 Back to School开学季 - VIP通行证5折优惠!蓝莓、Offer多多同步优惠
楼主: pxu
跳转到指定楼层
上一主题 下一主题
收起左侧

刷题打卡 -pxu

🔗
 楼主| pxu 2018-5-11 04:48:35 | 只看该作者
全局:
just did the 538. Convert BST to Greater Tree. Although it marked as easy question, seems still not easy for me. need to work harder!
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-11 07:43:15 | 只看该作者
全局:
finished 661. Image Smoother, still need to the see the discussion. so ashamed. the tricky is creating a new array and the [-1, 0, 1] for row and col;
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 01:36:12 | 只看该作者
全局:
did 535. Encode and Decode TinyURL. again. weird, leetcode didn't store my last submit.
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 01:37:51 | 只看该作者
全局:
Completed 535. Encode and Decode TinyURL. almost one time AC. Glad I got some progress finally.cheers,
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 01:38:42 | 只看该作者
全局:
sorry, wrong question above, should be 645. Set Mismatch. just need to make sure the order in the result array, 0 should be the duplicated one and 1 is the missing one.
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 02:01:42 | 只看该作者
全局:
finished 762. Prime Number of Set Bits in Binary Representation just now, and the triky part is that you need to manually list the primes and do the right shift on the int.  
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 02:02:11 | 只看该作者
全局:
just noticed that I have 181 points now. time flies
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 06:20:51 | 只看该作者
全局:
It took me about 4 hours to figure out and learn 146. LRU Cache. To make it work was fine, you can use map and queue, to make the time complexity  to O(1), have to use either map or doubly linked list with dummy head and tail. what a complex question.
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 07:13:59 | 只看该作者
全局:
completed 173. Binary Search Tree Iterator. I was able to make the space complexity to O(n) but couldn't make it to O(h). Learned what guru put in the discussion and figured it out. cheers:)
回复

使用道具 举报

🔗
 楼主| pxu 2018-5-12 10:38:50 | 只看该作者
全局:
208. Implement Trie (Prefix Tree). key point, isEnd and TreeNode[] = new TreeNode[26] within the TreeNode. Feel a bit tired.
回复

使用道具 举报

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

本版积分规则

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