** Image caption prediction system design**: merge output of ConvNets with outputs Gate...
![240](https://cdn2.jianshu.io/assets/default_avatar/7-0993d41a595d6ab6ef17b19496eb2f21.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
** Image caption prediction system design**: merge output of ConvNets with outputs Gate...
这题没做出来。需要复习 stock III可以划归为两个stock I问题,每个的Space是O(n), 不过真的太难想到了。。Comparing to I and II, ...
Medium, 用时10分钟 一切从简原则, pin-point在需要关注的点 Accumulation累加 Greedy
One pass, bug free: 10分钟1.一切从简单考虑:两种情况,升,降都覆盖到。 解法二:以上解法并不好,没有体现DP的思想不利于扩展DP解法: time:O(...
Medium, 用时20分钟, 还是Boyer-Moore Majority Vote algorithm. 此题可扩展为k的情况 error1, count1应设置为1 e...
Medium, 用时20分钟出现了两处错误:1.处理duplicates的方法没问题,仅需考虑尾部的duplicates即可,从而划归为153题(no duplicates)...
Medium,用时10分钟,出现一次错误:(见注释)1.binary search变种,思路是binary search,然而与普通的bs不一样,这里begin和end的移动...
Easy 用时5分钟。精简代码: version 1,未merge逻辑 Version2: merge if else
Easy,出现一次错误,用时7分钟
Easy, 用时3分钟解法一:算法名称为Boyer–Moore majority vote algorithm Eliminate all elements except o...
很久不刷题了,略有生疏,思路也不连贯。总结: 本题一开始想复杂了,目标应该focus到更新hashmap里面的值,一开始想法:不仅更新,且删除index在begin之前的所有...