
leetcode
文章平均质量分 56
isomebody
仰望星空,脚踏实地
展开
-
leetcode: 2. Add Two Numbers
一、描述: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 retu原创 2017-06-29 18:18:31 · 317 阅读 · 0 评论 -
leetcode:7. Reverse Integer
问题描述:Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321click to show spoilers.Note: The input is assumed to be a 32-bit signed integer. Your function should re原创 2017-06-30 09:37:10 · 351 阅读 · 0 评论 -
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 NA P L S I原创 2017-06-30 17:02:07 · 313 阅读 · 0 评论 -
leetcode:5. Longest Palindromic Substring
一、问题描述Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Example:In原创 2017-07-01 09:49:15 · 209 阅读 · 0 评论 -
leetcode: 8. String to Integer (atoi)
一. 题目描述:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input原创 2017-07-04 21:55:43 · 402 阅读 · 0 评论