没事刷题缓解焦虑。
最近工作中用到C#较多,所以代码以C#完成,主要先刷 Top 100 Liked Questions的部分。
目录
No. | Entry | answer | key words |
---|---|---|---|
283. Move Zeroes | https://leetcode.com/problems/move-zeroes/ | https://www.jianshu.com/p/6fd4aaebf4d1 | Array |
169. Majority Element | https://leetcode.com/problems/majority-element | https://www.jianshu.com/p/a07f512fdc9e | Array |
448. Find All Numbers Disappeared in an Array | https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/ | https://www.jianshu.com/p/2aa10324aabd | Array |
121. Best Time to Buy and Sell Stock | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ | https://www.jianshu.com/p/60176f3cb62c | Array |
53. Maximum Subarray | https://leetcode.com/problems/maximum-subarray/ | https://www.jianshu.com/p/678238e009b6 | Array |
1. Two Sum | https://leetcode.com/problems/two-sum/ | https://www.jianshu.com/p/ba96a07b436c | Array |