Search⌘ K

Challenge: Sorting From 1 to n

Learn to sort a unique integer array with elements from 1 to n in Go while handling missing values placed as -1. This lesson challenges you to apply sorting techniques and array processing to reorder elements efficiently. You'll practice solving a common data structure problem that builds foundational skills in algorithm implementation.

Problem

You are given an array of length nn ...