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

108 Solutions

70 Solvers

Last Solution submitted on Feb 11, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...