Ice Cream Parlor

  • + 1 comment

    How will it work if the values are 1 1 5 2 2 ? if the right pointer moved one index down, it will never find the solution (2, 2)