Your compass, recovered from the Hidden Cave, spins wildly! The ancient device shows angles that exceed 360° or drop below 0°. To follow the treasure trail, you must normalize each angle so it lies between 0° and 359°.
Given a vector a of compass readings (in degrees), return a vector b containing each reading normalized to this range. Use modulo arithmetic — your MATLAB compass is the key to the next map clue!

Solution Stats

107 Solutions

69 Solvers

Last Solution submitted on Jan 29, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...