© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
GirdhaR
one day or day one
in the worst case it would be 4 comparisons. in your example if the heaviest ball is either among ball 1,2,4 or 5 then it would take 4 comparisons to find that ball