3 ms·patio11's solution is about twice as efficient as mine, and is a much simpler way to think about it.by llimllib 18y agopatio11's solution is about twice as efficient as mine, and is a much simpler way to think about it.