I recently tried to solve Naive Chef problem in June Challenge and somehow failed to pass orignal constraints test case.
So I checked our submissions of other people and I found something…
Here’s my code->(I scored 20 pts)
Here’s someone else code with 100 pts->
Can you help me out.Please!!I want to know what’s my mistake as both the code’s have exactly same algorithm.