Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @Senua,validated by @Manuel_J,@ALaseleilliaaa and @Harry.B.
If you have any issues, feel free to ping them.
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @Senua,validated by @Manuel_J,@ALaseleilliaaa and @Harry.B.
If you have any issues, feel free to ping them.
The puzzle statement said the values should be sorted by “lexicographical order”. I’m in doubt.
Using lexicographical order, this array [-10, -9, -5, 5, 9, 10]
will be sorted into [-10, -5, -9, 10, 5, 9]
It looks like the puzzle is NOT asking for this kind of order.
What is wanted is sorting by integer values in asccending order.
Agreed. Additionally, the initial example does not help clarify this - as the examples solution can be arrived at by either numerical or lexicographic techniques. This compounds the confusion, particularly for beginners.
It’s a decent puzzle, but shouldn’t have been accepted in its current form. It needs rewording : (
I think that someone (with high enough access to edit accepted puzzles) should edit this to rephrase the problem statement.
Edited. Thank you for reporting.