Are OOP concepts like inheritance,data hiding,operator overloading required in problem solving??
No.
You don’t really have to write code that has to be read by others or do some real task or worry about security.
Also implementing those take more lines of code and hence more time, and since you want to submit your solutions as soon as possible it is not advisable to do so…
3 Likes
No,OOP concepts are not required for competitive programming.
These links might be helpful
Answer (1 of 7): OOP is not crucial to competitive programming. In some computational geometry problems, OOP can help but only parts of OOP are useful. Here is the most complicated struct that I ever coded:
struct Rect {
int l, r, t, b;
Rect() {l...
Answer (1 of 5): First of all one should understand why OOPS is required in first place. The concepts of OOP is essential when you are going to write a huge amount of code, which is probably going to be read, maintained and evolved by you and as well...
Answer (1 of 5): First of all one should understand why OOPS is required in first place. The concepts of OOP is essential when you are going to write a huge amount of code, which is probably going to be read, maintained and evolved by you and as well...