StalinSort Implementation is O(n^2)
Opened this issue · 0 comments
rajitkhanna commented
Because of your use of a slice in your for-each loop, your communism_is_wonderful()
function returns the sorted array in O(n^2)
time.
Opened this issue · 0 comments
Because of your use of a slice in your for-each loop, your communism_is_wonderful()
function returns the sorted array in O(n^2)
time.