
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 · 157 阅读 · 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 NA P L S...原创 2019-06-01 12:20:50 · 178 阅读 · 0 评论 -
9.Palindrome Number
题目描述Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward.样例Example 1:Input: 121Output: trueExample 2:Input: -121Output: ...原创 2019-06-13 20:44:14 · 150 阅读 · 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 · 163 阅读 · 0 评论