GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode/java/007_Reverse_Integer.java at master · RANJUBISWAS/leetcode Expand file tree/ Copy path007_Reverse_Integer.javaMore file actions 13 lines (13 loc) · 321 Bytes / Copy path007_Reverse_Integer.javaFile metadata and controls13 lines (13 loc) · 321 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 class Solution { public int reverse(int x) { if (x == 0) return 0; long res = 0; while (x != 0) { res = res * 10 + x % 10; if (res > Integer.MAX_VALUE || res < Integer.MIN_VALUE) return 0; x /= 10; } return (int) res; } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |