We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Search
- Ice Cream Parlor
- Discussions
Ice Cream Parlor
Ice Cream Parlor
Sort by
recency
|
973 Discussions
|
Please Login in order to post a comment
What if the input is like this 1 10 6 1 4 5 5 6 2 which contain two solutions do we give both or we just give the first solution.
There is inconsitent use of variable name, early on the question it named as
m
later on the passage, it is named as . Please be consistent.Here is my c++ solution, you can watch the explanation here : https://youtu.be/WvLuA-LCsb0