摘要: 删除等于n的数,并返回剩余元素个数 阅读全文
posted @ 2018-01-18 22:32 Sherry_Yang 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 判断两棵二叉树是否相等 阅读全文
posted @ 2018-01-18 17:13 Sherry_Yang 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 合并两个有序的list 把排序好的nums2插入nums1中,假设nums1这个vector的空间永远是够的 思路:倒序!! 阅读全文
posted @ 2018-01-18 16:13 Sherry_Yang 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 因为要考虑超时问题,所以虽然简单的for循环也可以做,但是要用map等内部红黑树实现的容器。 Given an array of integers, find out whether there are two distinct indices i and j in the array such t 阅读全文
posted @ 2018-01-18 12:59 Sherry_Yang 阅读(109) 评论(0) 推荐(0) 编辑