This is the test case i ran on the code. The OJ tells me the output should be true , but the correct answer is false, which even my code confirms . What could be causing this ??
Test case :[5,1,5,5,2,4]
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.