![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
leetcode常见题型200
sinat_27889599
这个作者很懒,什么都没留下…
展开
-
位操作--LeetCode讨论区部分汇总
数组中出现一次的数字Detailed explanation and generalization of the bitwise operation method for single numbers[解析:两个只出现一次的数组]https://leetcode-cn.com/problems/single-number-iii/solution/zhi-chu-xian-yi-ci-de-s...原创 2020-03-29 09:25:45 · 81 阅读 · 0 评论 -
处理循环数组的技巧
通过取余,可以处理循环数组的情况循环数组相关的问题:the next greater number分pizza问题排成环形的房子House Robber ii(后两者目前的解决办法没有用到取余来循环的方式)...原创 2020-03-22 20:07:12 · 252 阅读 · 0 评论 -
DP结题思路,以“Leetcode 72编辑距离”为例
Leetcode 72编辑距离其中一个解答,讲了DP的一些思路Leetcode关于DP的一些思路解答DP的过程使用递归树,得到最直观的解答使用memo避免重复计算采用DP表使用递归树的树要确定base cases和choices,根据choices确定状态转移方程。choices可以从题中提到的操作确定,本题中为:insert,delete,replace,将这三种操作转化成...原创 2020-03-13 17:34:20 · 99 阅读 · 0 评论