Ice Cream Parlor

  • + 20 comments

    I can think of using nested for loops.Can someone please share the approach to a solution better than o(n^2) ?