0

Any tips on solving hard code coaches?

I can't solve a lot of medium and hard level code coaches.can anybody give me tips

16th Jan 2025, 2:48 PM
Sherwin
4 Antworten
+ 6
You might want to copy your code and paste it into the code playground, then you can test different inputs to see what's missing in your code. You could also do this with a paper and pen... Check the logic, just because you think it's sound, doesn't mean it is. You might have misunderstood some little detail or implemented it incorrectly in your code. You should also look up resources about your language - things like Array sorters or converting int to string etc, are very good and helpful. And Mihaly Nyilas and his professors are right: practise, practise and don't give up.
16th Jan 2025, 5:02 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
as some of our professors said at the university: practice, practice, practice, practice and practice!
16th Jan 2025, 4:03 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 3
Work out how you would solve the problem without a computer program. Think about how you might teach a 6-year-old child how to do it. Then code the detailed steps accordingly into the computer.
16th Jan 2025, 5:35 PM
Brian
Brian - avatar
+ 1
Above all, read the task carefully. Draw a flow chart on the paper. Program the solution in small steps and check after each step whether the result corresponds to your expectation.
16th Jan 2025, 7:46 PM
JaScript
JaScript - avatar