2017年5月24日
摘要: LeetCode 17 Letter Combinations of a Phone Number Question Given a digit string, return all possible letter combinations that the number could represe 阅读全文
posted @ 2017-05-24 20:51 Silence_cnblogs 阅读(236) 评论(0) 推荐(0) 编辑
  2017年5月23日
摘要: LeetCode 18 4Sum Question Given an array S of n integers, are there elements a , b , c , and d in S such that a + b + c + d = target? Find all unique 阅读全文
posted @ 2017-05-23 17:59 Silence_cnblogs 阅读(255) 评论(0) 推荐(0) 编辑
摘要: LeetCode 16 3Sum Closest Question Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Ret 阅读全文
posted @ 2017-05-23 16:10 Silence_cnblogs 阅读(221) 评论(0) 推荐(0) 编辑
摘要: LeetCode 15 3Sum Question 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 a 阅读全文
posted @ 2017-05-23 12:53 Silence_cnblogs 阅读(191) 评论(0) 推荐(0) 编辑
  2017年5月21日
摘要: LeetCode 8 String to Integer (atoi) Question Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If y 阅读全文
posted @ 2017-05-21 11:21 Silence_cnblogs 阅读(231) 评论(0) 推荐(0) 编辑
  2017年5月20日
摘要: LeetCode 5 Longest Palindromic Substring Question Given a string s , find the longest palindromic substring in s . You may assume that the maximum len 阅读全文
posted @ 2017-05-20 17:17 Silence_cnblogs 阅读(275) 评论(0) 推荐(0) 编辑
  2017年5月19日
摘要: LeetCode 3 Longest Substring Without Repeating Characters Question Given a string, find the length of the longest substring without repeating characte 阅读全文
posted @ 2017-05-19 14:29 Silence_cnblogs 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Swift 中 String 取下标及性能问题 取下标 String String 用 String.Index 取下标(subscript)得到 Character,String.Index 要从 String 中获取 String 用 Range<String.Index> 或 Cl 阅读全文
posted @ 2017-05-19 12:06 Silence_cnblogs 阅读(3007) 评论(1) 推荐(0) 编辑
  2017年5月16日
摘要: LeetCode 11 Container With Most Water Question Given n non negative integers a1 , a2 , ..., an , where each represents a point at coordinate ( i , ai 阅读全文
posted @ 2017-05-16 15:06 Silence_cnblogs 阅读(228) 评论(0) 推荐(0) 编辑
  2017年5月13日
摘要: LeetCode 2 Add Two Numbers Question You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse 阅读全文
posted @ 2017-05-13 11:45 Silence_cnblogs 阅读(219) 评论(0) 推荐(0) 编辑