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
4 Respuestas
+ 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.
+ 3
as some of our professors said at the university:
practice, practice, practice, practice and practice!
+ 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.
0
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.