摘要: 。。。此道算法题的难点在于排除重复项,重复项真的好麻烦。。。 Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c 阅读全文
posted @ 2019-08-19 21:44 孙小鸟 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array nums, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra spa 阅读全文
posted @ 2019-08-19 19:55 孙小鸟 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文
posted @ 2019-08-19 19:37 孙小鸟 阅读(73) 评论(0) 推荐(0) 编辑