Blog on algorithms, puzzles, programming .... musings of a computer engineer.
Use Quick Sort :0 1 1 1 0 0 1 0 0 1^ ^ ^up pivot downQuick sort will do this in one pass.Count Sort will do this in two passes.
Post a Comment
No comments:
Post a Comment