Tuesday, July 10, 2018

Leetcode 75: Sort colors

July 10, 2018

Introduction


It is the algorithm called sort colors. We can use non-comparison sort, counting sort should be a good solution since we only have three colors.


No comments:

Post a Comment