Full threadValleZ·I was asked to invent this algorithm on a whiteboard in 30 minutes. Loved it.View on HN