algs4; exercise 1.1.14 - remove unnecessary edge case