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 e521aba commit 9a69b26Copy full SHA for 9a69b26
src/me/ramswaroop/misc/ReverseAndAdd.java
@@ -26,7 +26,7 @@ public static boolean isNegative(long n) {
26
}
27
28
public static long[] reverseAddAndCheck(String n) {
29
- long additions = 0;
+ long additions = 1;
30
long original = Long.valueOf(n);
31
32
boolean isNegative = isNegative(original);
src/me/ramswaroop/misc/reverseandadd.txt
@@ -103,4 +103,5 @@
103
1050027948
104
1304199693
105
5020089949
106
-1005499526
+1005499526
107
+4294967294
0 commit comments