摘要: Problem: 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 a 阅读全文
posted @ 2017-03-09 01:18 Richard_W 阅读(259) 评论(0) 推荐(0)
摘要: A set object is an unordered collection of distinct hashtable objects. Common uses include membership testing, removing duplicates from a sequence, an 阅读全文
posted @ 2017-03-09 01:07 Richard_W 阅读(177) 评论(0) 推荐(0)
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2017-02-24 23:19 Richard_W 阅读(134) 评论(0) 推荐(0)