I have been trying to solve this practice problem H1, https://www.codechef.com/problems/H1
Here is my code: https://www.codechef.com/viewsolution/17754075
It gives me WA. But I verified my solution against a previously accepted solution. All I needed to do is to check if my dictionary ‘depths’ is matching with the corresponding dictionary in an accepted code. And they were matching!
Can somebody please help me figure out why I’m geting WA?
Thanks in advance!