- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode14. Longest Common Prefix(C++/Python)
Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string"".Example 1:Input: ["flower","flow","flight"]Output:...
2018-12-31 09:16:39 139
原创 LeetCode13. Roman to Integer(C++/Python)
Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM.Symbol ValueI 1V 5X 10L 50C 100D ...
2018-12-31 09:06:15 251
原创 LeetCode12. Integer to Roman(C++/Python)
Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM.Symbol ValueI 1V 5X 10L 50C 100D ...
2018-12-31 08:59:14 142
原创 LeetCode11. Container With Most Water(C++/Python)
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of lineiis at (i,ai) and (i, 0). Find two...
2018-12-31 08:54:28 130
原创 LeetCode9. Palindrome Number(C++/Python)
Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward.Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExpl...
2018-12-31 08:48:48 260
原创 LeetCode8. String to Integer (atoi)(C++/Python)
Implementatoiwhichconverts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from thi...
2018-12-31 08:46:29 170
原创 LeetCode7.Rverse Integer(C++/Python)
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dea...
2018-12-31 08:32:34 138
原创 Leetcode5. Longest Palindromic Substring(C++/Python)
Given a strings, find the longest palindromic substring ins. You may assume that the maximum length ofsis 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Exa...
2018-12-30 21:26:29 224
原创 LeetCode6. ZigZag Conversion (C++/Python)
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I I...
2018-12-30 09:12:53 234
原创 LeetCode3. Longest Substring Without Repeating Characters(C++/Python)
Given a string, find the length of thelongest substringwithout repeating characters.Example 1:Input: "abcabcbb"Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2:...
2018-12-30 08:48:31 111
原创 LeetCode2. Add Two Numbers(C++/Python)
You are given twonon-emptylinked lists representing two non-negative integers. The digits are stored inreverse orderand each of their nodes contain a single digit. Add the two numbers and return i...
2018-12-30 08:38:44 125
原创 Leetcode1. Two Sum (C++/Python)
Given an array of integers, returnindicesof the two numbers such that they add up to a specific target.You may assume that each input would haveexactlyone solution, and you may not use thesame...
2018-12-30 08:28:36 235
基于傅里叶算子的手势识别的完整源代码(Python实现,包含样本库)
2019-08-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人