@timsweeneyepic And in linear time too!
But I have a constant time sort…
-
-
-
@jamesiry@TimSweeneyEpic // Upon return, the array is sorted. void sort(int* a,int n) { exit(0); } - 4 more replies
New conversation -
-
-
@timsweeneyepic // God has a reason for the current order of this array. Who am I to question Him? void sort(int* a, int n){return;}Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@TimSweeneyEpic It's very close to a working Prolog "naive" sort. http://kti.ms.mff.cuni.cz/~bartak/prolog/sorting.html …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@TimSweeneyEpic i-1 and <= sheesh how did this pass unit testsThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@josephsdrago@TimSweeneyEpic Agree with Joe
End of conversation
New conversation -
-
@TimSweeneyEpic I have no idea what this means, but I have faith that this'll help me win at sorting arrays.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@TimSweeneyEpic looks like@twitter need syntax highlighting and code definitionThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@TimSweeneyEpic only in debug buildsThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.