Algorithm · Apple · Medium
Remove Repeated Values and Order the Array Problem You receive an unordered integer array containing roughly 75 items, and some integers can occur multiple times. Create a function that does the following: Replaces repeated occurrences with 0. When a number occurs multiple times, every occurrence after the first must become 0. Arranges the updated array from smallest to largest. Avoids all built-in and native sorting utilities. In particular, do not use Array.prototype.sort,…
Checking your access…