2017年9月13日

Letter c语言-Combinations of a Phone Number

摘要: Title:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (jus... 阅读全文

posted @ 2017-09-13 23:41 sichenzhao 阅读(438) 评论(0) 推荐(0) 编辑

对递归算法的理解

摘要: 最近刷leetcode题时,碰到题目需要用到递归算法,否则基本无解。接下来结合实例谈谈本人对递归算法的理解。对递归算法的形象解释:想象用一本纯英文词典查单词,要查某一个单词的意思,翻到这个单词时,看解释,发现解释中有一个单词不认识,所以,无法明白这个要查的单词是什么意... 阅读全文

posted @ 2017-09-13 23:09 sichenzhao 阅读(182) 评论(0) 推荐(0) 编辑

Leetcode c语言-3Sum Closest

摘要: Title:Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum ... 阅读全文

posted @ 2017-09-13 15:32 sichenzhao 阅读(206) 评论(0) 推荐(0) 编辑

Leetcode c语言-3Sum

摘要: Title: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 w... 阅读全文

posted @ 2017-09-13 15:15 sichenzhao 阅读(174) 评论(0) 推荐(0) 编辑

导航