- 博客(2)
- 收藏
- 关注
原创 Leetcode Part II based on Google
Google 1007. Minimum Domino Rotations For Equal Row 写一个大字典 {频率:(哪一个list,什么数字)},按频率排序,去找另一个list里是否可以swap,这样第一个找到的一定是次数最少的 1252 ms, faster than 46.23% of Python3 Solution: 只需判断A[0] 和 B[0] 的数字 在 对方list中...
2020-03-06 12:33:05 104
原创 LeetCode算法
LeetCode刷题 Remove Nth Node From End of List 1.从头遍历 *2 ☆ 2. 一次遍历 maintain a n-length gap between point a and b ☆
2018-12-24 10:15:06 88
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人