Seksjon 1. Kapittel 21
single
Challenge: Remove Duplicates
Sveip for å vise menyen
Oppgave
Swipe to start coding
Write a program that creates a new array containing only unique values from an integer array.
To complete the function:
- Iterate through the
numbersarray. - Add each value to a new collection only if it is not already present.
- Return a new array containing all unique values.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 21
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår