LeetCode
Reticent_Man
我本微末凡尘,可也心向天空。
展开
-
1.Two Sum(打开LeetCode大门!)
很久没有刷题,感觉现在只会做简单的模拟题了o(╥﹏╥)o,从今天开始刷LeetCode题,重新复习数据结构,加油! 题目 Given an array of integers, returnindicesof the two numbers such that they add up to a specific target. You may assume that each input...原创 2019-04-27 22:56:24 · 122 阅读 · 0 评论 -
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...原创 2019-06-01 12:20:50 · 137 阅读 · 0 评论 -
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: -121 Output: ...原创 2019-06-13 20:44:14 · 112 阅读 · 0 评论 -
8. String to Integer (atoi)
题目描述 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 fr...原创 2019-06-13 21:52:30 · 119 阅读 · 0 评论