摘要: 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 @ 2016-08-18 01:26 咖啡中不塌缩的方糖 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of 阅读全文
posted @ 2016-08-18 01:25 咖啡中不塌缩的方糖 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文
posted @ 2016-08-18 00:04 咖啡中不塌缩的方糖 阅读(236) 评论(0) 推荐(0) 编辑