I participate in google kick start 2020 round D. Whenever I submitted my solution, it shows " Wrong Answer: test cases skipped". After the competition, when I look for other's solution, I skipped one corner cases, which was not clear to me. Recently, I tried to solve another problem: https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ff43/00000000003380d2#problem and face the same problem. My solution is https://ideone.com/7xGHUO, which I expect to be correct. Please help me out!
Write a naive solution (or take someone's solution if the contest is over) and make a script to run it on many random small test cases.
Your Solution is Wrong .
Test Case :
1
5 3
3 2 3 2 1
Correct Output :- 1
Your Output :- 0
Correct Solution Using your code only and changing only few lines :
Thanks for help