Did Amazon OA today. First problem all test cases passed and gave most optimal solution. Second problem, I was on right track but while the code had some Runtime Exception. The system made debugging very difficult as print statements and stack trace couldn’t be printed in case of runtime exception
This post first appeared on Blind: Professional Networking Community, please read the originial post: here