3 ms·
It is a question of priority, I think what GP is saying is that programmers used to these contests will focus on getting their structures right first, and will
by GuB-42 5y ago
It is a question of priority, I think what GP is saying is that programmers used to these contests will focus on getting their structures right first, and will take care of logic on a second time, if they have time for it. In programming contests, they don't have time.
And I think it makes sense and that is a hierarchy. Data structures are the most important, followed by logic (algorithms), followed by comments.
The reason is that if you change your data structures, you need to change your algorithms, and if you change your algorithms, you need to change your comments. Data structures define everything, comments define nothing but themselves.
- msteffen 5y agoYeah exactly, thanks. I think I should've said "and focus on the data structures" instead of "and see the data structures"