
leetcode
Sunny君
这个作者很懒,什么都没留下…
展开
-
leetcode 1. Two Sum(python)
1.Two Sum 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 u...原创 2019-04-15 19:14:40 · 114 阅读 · 0 评论 -
Leetcode 7. Reverse Integer(python3)
7.Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Not...原创 2019-04-16 11:07:26 · 145 阅读 · 0 评论 -
14. Longest Common Prefix(python3)
14.Longest Common Prefix 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: ["flowe...原创 2019-04-21 10:49:07 · 397 阅读 · 0 评论 -
leetcode 9. Palindrome Number(python3)
9.Palindrome Number Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: -...原创 2019-04-16 21:57:04 · 166 阅读 · 0 评论 -
leetcode 13. Roman to Integer(python3)
13.Roman to Integer Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM. Symbol Value I 1 V 5 X 10 L 50 C ...原创 2019-04-17 11:23:20 · 190 阅读 · 0 评论