LeetCode
阿田要加油
这个作者很懒,什么都没留下…
展开
-
leetcode_6_ ZigZag Conversion
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 N A P L S I I G...原创 2019-02-17 15:01:51 · 150 阅读 · 0 评论 -
leetcode-2-addTwoNumbers
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 contain a single digit. Add the two numbers and return i...原创 2019-02-11 16:47:41 · 105 阅读 · 0 评论 -
leetcode-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 Note: Assume we are dealing with ...原创 2019-02-18 10:34:44 · 113 阅读 · 0 评论 -
leetcode_3_LengthOfLongestSubstring
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Inp...原创 2019-02-12 16:59:04 · 201 阅读 · 0 评论 -
leetCode-9. Palindrome Number
确定整数是否是回文。当它向前读取向后时,整数是回文。 例1: 输入: 121 输出: true 例2: 输入: -121 输出: false 说明:从左到右,它显示为-121。从右到左,它变成121-。因此它不是回文。 例3: 输入: 10 输出: false 说明:从右到左读取01。因此它不是回文。 跟进: 你能解决它而不是将整数转换为字符串? MyAnswer int fla...原创 2019-02-19 10:33:15 · 102 阅读 · 0 评论