Brian Kernighan’s Algorithm
techiedelight.com