We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53910be commit 19dc1a7Copy full SHA for 19dc1a7
src/main/java/com/fishercoder/solutions/_7.java
@@ -1,26 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 7. Reverse Integer
5
-
6
- Given a 32-bit signed integer, reverse digits of an integer.
7
8
- Example 1:
9
- Input: 123
10
- Output: 321
11
12
- Example 2:
13
- Input: -123
14
- Output: -321
15
16
- Example 3:
17
- Input: 120
18
- Output: 21
19
20
- Note:
21
- Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1].
22
- For the purpose of this problem, assume that your function returns 0 when the reversed integer overflows.
23
- */
24
public class _7 {
25
26
public static class Solution1 {
0 commit comments