Starting with Easy LeetCode JavaScript Problems. LeetCode sorts its problems into Easy, Medium, and Hard. As a beginner, ...
The 3rd testcase says it has the expected output of [-1] which makes no sense. When I press 'Use Testcase' and run it, it passes the testcase and says the expected output is [1, 2]. However, when i ...
I wrote code for it and for this question for same code it is passing testcase 3 (the one which we use to check if it's running or not ) But for same test case it showing me wrong output after ...