![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode OJ
beryl_lu
这个作者很懒,什么都没留下…
展开
-
Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element原创 2016-09-23 10:09:28 · 176 阅读 · 0 评论 -
Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Java中int型范围:-2^32 - 2^32-1(2147483647 - -2147483648),也可以用Integer.MAX_VALUE - Integer.MIN_VALUE表示。原创 2016-10-09 20:48:32 · 148 阅读 · 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 I原创 2016-09-27 21:28:04 · 182 阅读 · 0 评论