摘要: 题目 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Note: "aba" is also a 阅读全文
posted @ 2017-09-03 21:30 cookielbsc 阅读(167) 评论(0) 推荐(0)
摘要: 题目 Determine if a Sudoku is valid, according to: "Sudoku Puzzles The Rules" . The Sudoku board could be partially filled, where empty cells are filled 阅读全文
posted @ 2017-08-31 11:45 cookielbsc 阅读(174) 评论(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 阅读全文
posted @ 2017-08-25 21:36 cookielbsc 阅读(161) 评论(0) 推荐(0)
摘要: 题目 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see bel 阅读全文
posted @ 2017-08-25 17:15 cookielbsc 阅读(139) 评论(0) 推荐(0)
摘要: 题目 Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the l 阅读全文
posted @ 2017-08-25 16:21 cookielbsc 阅读(107) 评论(0) 推荐(0)
摘要: 题目 You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and each of their nodes con 阅读全文
posted @ 2017-08-25 15:12 cookielbsc 阅读(156) 评论(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 阅读全文
posted @ 2017-08-25 14:33 cookielbsc 阅读(191) 评论(0) 推荐(0)