Hello Codeforces,↵
↵
I was solving [this problem on hackerrank](https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem).↵
↵
I successfully solved it by submitting [this](https://pastebin.com/hXFbcVTBcollabedit.com/4p7gd) ([for hackkerank site](https://www.hackerrank.com/challenges/climbing-the-leaderboard/submissions/code/160408326)). All test cases passed.↵
↵
But [this submission](https://pastebin.com/tQ7SVkbV) fails on [this](https://hr-testcases-us-east-1.s3.amazonaws.com/29530/input08.txt?AWSAccessKeyId=AKIAJ4WZFDFQTZRGO3QA&Expires=1590434688&Signature=pK0SMFPQhRqzKr3yd7ezln6bVtI%3D&response-content-type=text%2Fplain)collabedit.com/57tb9)([for hackkerank site](https://www.hackerrank.com/challenges/climbing-the-leaderboard/submissions/code/160503246)) fails on [this](https://pasteid.fledix.com/u28s) test case. Why??↵
↵
Also when i try to implement the above solutions on my computer they run indefinitely on other test cases(which got accepted on hackerrank) for large values of n and m. ↵
↵
Help!!↵
↵
↵
I was solving [this problem on hackerrank](https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem).↵
↵
I successfully solved it by submitting [this](http
↵
But [this submission](http
↵
Also when i try to implement the above solutions on my computer they run indefinitely on other test cases(which got accepted on hackerrank) for large values of n and m. ↵
↵
Help!!↵
↵