0% completed
O(n) 's more elegant solution
Fei Shan
Sep 23, 2024
2
53
0
Oct 23, 2025
Another but simple solution (not in a cyclic sort fashion)
Daehan Choi
Aug 19, 2024
0
43
0
Aug 19, 2024
less confusing solution
Mohammed Dh Abbas
Jul 18, 2024
1
51
0
Feb 2, 2025
One way to look at this is:Place all numbers in their correct position except n....
Gideon
Apr 13, 2022
7
92
1
Feb 22, 2025
Why not compare i and j directly instead of doing nums[i] and nums[j]? Since the...
Kyle McKee
Mar 31, 2022
4
57
1
Oct 23, 2025
I feel like the examples are a bit misleading here. Would be useful to have anot...
nrstnbr
Mar 17, 2022
0
54
0
Mar 17, 2022
An alternative solution if we consider that the sum of numbers: 1, 2, 3, ..., n ...
Athanasios Petsas
Feb 10, 2022
3
75
2
Jul 19, 2025