2017年6月9日

(leetcode题解)K-diff Pairs in an Array

摘要: Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte 阅读全文

posted @ 2017-06-09 20:04 kiplove 阅读(192) 评论(0) 推荐(0) 编辑

(leetcode题解)Remove Duplicates from Sorted Array

摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文

posted @ 2017-06-09 15:41 kiplove 阅读(114) 评论(0) 推荐(0) 编辑

导航