LeetCode 20. Valid Parentheses
摘要:https://leetcode.com/problems/valid-parentheses/description/ Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine
阅读全文
posted @
2018-02-10 10:54
浩然119
阅读(135)
推荐(0)
LeetCode 1. Two Sum
摘要:https://leetcode.com/problems/two-sum/description/ Given an array of integers, return indices of the two numbers such that they add up to a specific t
阅读全文
posted @
2018-02-09 10:53
浩然119
阅读(195)
推荐(0)
LeetCode 38. Count and Say
摘要:https://leetcode.com/problems/count-and-say/description/ The count-and-say sequence is the sequence of integers with the first five terms as following
阅读全文
posted @
2018-02-06 14:11
浩然119
阅读(219)
推荐(0)
LeetCode 7. Reverse Integer
摘要:https://leetcode.com/problems/reverse-integer/description/ Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example
阅读全文
posted @
2018-02-05 18:46
浩然119
阅读(195)
推荐(0)
LeetCode 387. First Unique Character in a String
摘要:https://leetcode.com/problems/first-unique-character-in-a-string/description/ Given a string, find the first non-repeating character in it and return
阅读全文
posted @
2018-02-02 16:22
浩然119
阅读(223)
推荐(0)
LeetCode 344. Reverse String
摘要:https://leetcode.com/problems/reverse-string/description/ Write a function that takes a string as input and returns the string reversed. Example:Given
阅读全文
posted @
2018-02-02 15:37
浩然119
阅读(170)
推荐(0)
LeetCode 26. Remove Duplicates from Sorted Array
摘要:https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/ Given a sorted array, remove the duplicates in-place such that each ele
阅读全文
posted @
2018-01-30 13:09
浩然119
阅读(166)
推荐(0)
LeetCode 49. Group Anagrams
摘要:https://leetcode.com/problems/group-anagrams/description/ Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan"
阅读全文
posted @
2018-01-29 11:26
浩然119
阅读(235)
推荐(0)
LeetCode 242. Valid Anagram
摘要:https://leetcode.com/problems/valid-anagram/description/ Given two strings s and t, write a function to determine if t is an anagram of s. For example
阅读全文
posted @
2018-01-27 17:39
浩然119
阅读(159)
推荐(0)
LeetCode 326. Power of Three
摘要:https://leetcode.com/problems/power-of-three/description/ Given an integer, write a function to determine if it is a power of three. Follow up:Could y
阅读全文
posted @
2018-01-26 15:08
浩然119
阅读(163)
推荐(0)
LeetCode 231. Power of Two
摘要:https://leetcode.com/problems/power-of-two/description/ Given an integer, write a function to determine if it is a power of two. 简单数学题,位运算 2的幂在2进制中只有1
阅读全文
posted @
2018-01-25 13:31
浩然119
阅读(153)
推荐(0)
LeetCode 14. Longest Common Prefix
摘要:https://leetcode.com/problems/longest-common-prefix/description/ Write a function to find the longest common prefix string amongst an array of strings
阅读全文
posted @
2017-12-13 20:02
浩然119
阅读(176)
推荐(0)
LeetCode 177. Nth Highest Salary
摘要:https://leetcode.com/problems/nth-highest-salary/description/ Write a SQL query to get the nth highest salary from the Employee table. + + + | Id | Sa
阅读全文
posted @
2017-10-12 09:28
浩然119
阅读(458)
推荐(0)
LeetCode 176. Second Highest Salary
摘要:https://leetcode.com/problems/second-highest-salary/description/ Write a SQL query to get the second highest salary from the Employee table. + + + | I
阅读全文
posted @
2017-10-12 08:31
浩然119
阅读(393)
推荐(0)
LeetCode 175. Combine Two Tables
摘要:https://leetcode.com/problems/combine-two-tables/description/ Table: Person + + + | Column Name | Type | + + + | PersonId | int | | FirstName | varcha
阅读全文
posted @
2017-10-11 21:15
浩然119
阅读(142)
推荐(0)
LeetCode 53. Maximum Subarray
摘要:https://leetcode.com/problems/maximum-subarray/description/ Find the contiguous subarray within an array (containing at least one number) which has th
阅读全文
posted @
2017-09-21 23:28
浩然119
阅读(154)
推荐(0)
LeetCode 10. Regular Expression Matching
摘要:https://leetcode.com/problems/regular-expression-matching/description/ Implement regular expression matching with support for '.' and '*'. 字符串匹配。最后一个样
阅读全文
posted @
2017-09-01 22:02
浩然119
阅读(203)
推荐(0)
LeetCode 5. Longest Palindromic Substring
摘要:https://leetcode.com/problems/longest-palindromic-substring/description/ Given a string s, find the longest palindromic substring in s. You may assume
阅读全文
posted @
2017-08-31 18:22
浩然119
阅读(191)
推荐(0)
LeetCode 67. Add Binary
摘要:https://leetcode.com/problems/add-binary/description/ Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Re
阅读全文
posted @
2017-08-30 20:21
浩然119
阅读(178)
推荐(0)
LeetCode 8. String to Integer (atoi)
摘要:https://leetcode.com/problems/string-to-integer-atoi/description/ Implement atoi to convert a string to an integer. Hint: Carefully consider all possi
阅读全文
posted @
2017-08-29 17:54
浩然119
阅读(210)
推荐(0)