0

How do I solve a coding challenge on SoloLearn?

I took up this coding challenge (Extra-Terrestrials) and I got the first test case correctly. How do I solve the other test cases?

14th Apr 2020, 6:06 PM
Emmanuel
Emmanuel - avatar
1 Answer
+ 3
You have to make a general solution that works for whatever input they provide, instead of trying to solving one. To pass the challenge, all test cases must be validated, i.e. they take your code, run it one after another with their test inputs, and compare the output of your code to what they expect. Only if all five match, the challenge is cleared.
14th Apr 2020, 6:08 PM
Shadow
Shadow - avatar