Skip to content

Commit 9562bff

Browse files
committed
feat: add 001
1 parent 11f7d35 commit 9562bff

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121

2222

23-
[001]: https://github.com/Blankj/awesome-java-leetcode/blob/master/note/001.md
24-
[007]: https://github.com/Blankj/awesome-java-leetcode/blob/master/note/007.md
23+
[001]: https://github.com/Blankj/awesome-java-leetcode/blob/master/note/001/README.md
24+
[007]: https://github.com/Blankj/awesome-java-leetcode/blob/master/note/007/README.md
File renamed without changes.

note/007/007.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Reverse Integer
2+
3+
## Description
4+
5+
Reverse digits of an integer.
6+
7+
Example1: x = 123, return 321
8+
Example2: x = -123, return -321
9+
10+
click to show spoilers.
11+
12+
Have you thought about this?
13+
Here are some good questions to ask before coding. Bonus points for you if you have already thought through this!
14+
15+
If the integer's last digit is 0, what should the output be? ie, cases such as 10, 100.
16+
17+
Did you notice that the reversed integer might overflow? Assume the input is a 32-bit integer, then the reverse of 1000000003 overflows. How should you handle such cases?
18+
19+
For the purpose of this problem, assume that your function returns 0 when the reversed integer overflows.
20+
21+
Note:
22+
The input is assumed to be a 32-bit signed integer. Your function should return 0 when the reversed integer overflows.
23+
24+
25+
## 思路
26+
27+
28+
``` java
29+
30+
```

0 commit comments

Comments
 (0)