I was trying the test case [2,1,1]. The expected output given by the system is 1.
This should be corrected as the expected value should be 2.
[2,1,1] test case gives the wrong expected answer
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.