Your code is not working for some cases. Consider for example input 1 1 2 2 4. The answer should be 6, but your code returns 1.
khushi saha
- 21
- 2
Your code is not working for some cases. Consider for example input 1 1 2 2 4. The answer should be 6, but your code returns 1.