摘要:
原题地址:https://oj.leetcode.com/problems/string-to-integer-atoi/题意:Implementatoito convert a string to an integer.Hint:Carefully consider all possible in... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/zigzag-conversion/题意:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like thi... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/reverse-integer/题意:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321解题思路:翻... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/longest-palindromic-substring/题意:Given a stringS, find the longest palindromic substring inS. You may assume tha... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given a collection of candidate numbers (C) and a target number (T), find all unique combi... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/first-missing-positive/题意:Given an unsorted integer array, find the first missing positive integer.For example,G... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array/题意:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/scramble-string/题意:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty su... 阅读全文
摘要:
原题地址:https://oj.leetcode.com/problems/simplify-path/题意:Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home... 阅读全文