/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

theweeklychallenge.org
| | blog.nuculabs.de

Hello, Here are my solutions for the second part of the card: Arrays 101, from LeetCode. Duplicate Zeroes Given an array of integers, remove duplicate zeroes and shift the remaining elements. 1 2 3 4 5 6 7 8 9 10 11 12 13 class Solution: def duplicateZeros(self, arr: List[int]) -> None: """ Do not return anything, modify arr in-place instead. """ index = 0 arr_length = len(arr) while index < arr_length: if arr[index] == 0: arr.insert(index, 0) arr.pop() index += 1 index += 1 Merge Sorted Array Given two sorted arrays, merge them together into nums1.
9.5 parsecs

Travel
| |
| | blog.firedrake.org

I've been doing the Weekly Challenges. The latest involved more string manipulations. (Note that this ends today.)
12.1 parsecs

Travel
| |
| | andrewshitov.com


11.9 parsecs

Travel
| |
| | theweeklychallenge.org

The Weekly Challenge - 348
22.4 parsecs

Travel
|