- 博客(5)
- 收藏
- 关注
原创 leetcode之Intersection of two arrays,delete node in a list, same tree
思路都比较简单,主要就是要代码简洁和做到bug free 1.注意size()==0 2.注意delete 3.注意直接实现 和 代码简洁度
2016-06-12 10:54:16 269
原创 leetcode 之reverse string ,Nim game, add digits
add digit启发: 注意找规律,多写几个找出数字中的规律
2016-06-10 12:36:00 310
原创 codeforce之最少加多少能组成一个凸三角形
这是个纯数学规律的题目: 只要让最大的那条边小于剩下的所有边之和即可,如果小于等于,只需要将剩下的边的和加到比最大的那个大1即可。
2016-06-05 21:22:03 271
原创 codeforce之Magic Powder
题目: The term of this problem is the same as the previous one, the only exception — increased restrictions. Input The first line contains two positive integers n and k (1 ≤ n ≤ 100 000
2016-06-03 23:20:14 351
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人