Thursday, June 10, 2010

Sort an array with just 3 different types of symbols

Optimal in space and time.

2 comments:

  1. Iterate through the array, counting each of the three symbols. Fill the array with the counted number of each symbol in order.

    ReplyDelete