# sorting easy

No Ties Allowed

The high-score wall lists records, and every record must BEAT the one before it — matching it isn't enough! 🏆

You get the wall as nums. Print all records if every number is strictly bigger than the previous, otherwise not records.

Example:

Input: nums = [10, 25, 26, 90] Output: all records

Each number is STRICTLY bigger than the one before it (10<25<26<90) — print all records.

Input: nums = [10, 25, 25, 90] Output: not records

The second 25 only ties the first 25 instead of beating it, so the flag flips — print not records.

💡 need a hint?

sort-no-ties-allowed.py🔒 given lines are locked — write your code in between
loading...