0

Java Enum Code coach problem

Does somebody have the same problem and how to solve it in correct way? https://code.sololearn.com/cnJDD4TG00C9/?ref=app

28th Oct 2020, 3:06 PM
Yaroslav Yatsyk
Yaroslav Yatsyk - avatar
10 Answers
+ 2
You are changing passed value to medium again.. Why? There is no need of line no:19 Edit : it's removed
28th Oct 2020, 3:22 PM
Jayakrishna 🇼🇳
+ 1
Yes, it's broken. With the given Players and their Difficulty, you May never get the expected output. Next point: there are only 3 players given. But scroll the list of expected output. There are 4 outputs expected.
28th Oct 2020, 3:10 PM
Coding Cat
Coding Cat - avatar
0
But in expected results I see only three outputs(.
28th Oct 2020, 3:13 PM
Yaroslav Yatsyk
Yaroslav Yatsyk - avatar
0
Yes, but you can scroll it. Last week, when I did it, there was a 4. line. I have added one Player. Changed All Difficulty of players to get expected output.
28th Oct 2020, 3:16 PM
Coding Cat
Coding Cat - avatar
0
Oh yes, I didn't see this. First make your code running propper. Then you won't get the test cases.
28th Oct 2020, 3:27 PM
Coding Cat
Coding Cat - avatar
0
I updated some lines of code but I am not sure that it's correct.
28th Oct 2020, 11:05 PM
Yaroslav Yatsyk
Yaroslav Yatsyk - avatar
0
Looks good. And at this point I had to add Player 4 with Difficulty HARD to pass the test case. Did you found the 4. line of expected output in the meantime?
28th Oct 2020, 11:21 PM
Coding Cat
Coding Cat - avatar
0
I am trying this at the moment
28th Oct 2020, 11:22 PM
Yaroslav Yatsyk
Yaroslav Yatsyk - avatar
0
Yeah, it worked thank you. I think that team of Sololearn made some bugs in code coach section, isn't it?
28th Oct 2020, 11:25 PM
Yaroslav Yatsyk
Yaroslav Yatsyk - avatar
0
Yes, that's it 😉
28th Oct 2020, 11:33 PM
Coding Cat
Coding Cat - avatar