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/026_Remove_Duplicates_from_Sorted_Array.java at master · nuistji/leetcode Expand file tree/ Copy path026_Remove_Duplicates_from_Sorted_Array.javaMore file actions 16 lines (13 loc) · 348 Bytes / Copy path026_Remove_Duplicates_from_Sorted_Array.javaFile metadata and controls16 lines (13 loc) · 348 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 //026. Remove Duplicates from Sorted Array class Solution { public int removeDuplicates(int[] nums) { int index = 1; for (int i = 0; i < nums.length - 1; i++) { if (nums[i] != nums[i + 1]) { nums[index] = nums[i + 1]; index++; } } return index; } } |
| 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. |