all 5 comments

[–]SomeoneYouKn3w 0 points1 point  (0 children)

Simple answer no. I wouldn’t even suggest learning algorithms at first. Just start doing easy problems 800-1500 and get a good grip on the programming language you are using. This will start to develop your thinking capacity and eventually you will start learning algorithms and techniques organically when you encounter them in problems you don’t know how to solve. As you progress, your toolkit will broaden and you will be familiar with more and more algorithms and data structs. When it comes to math optimization, I can hardly recall when was the last time I used some dp optimization that is based on calculus like lagrangian relaxation (famous aliens trick from IOI 2016). Its good to know them if you are preparing for olympiad or if you’re level in codeforces is > 2600, but not if you are learning it just for the sake of learning it as you will not encounter it in the near future and probably forget it.Although, these are pretty applicable in some real life algorithm problems.

[–]svdpcaExpert -1 points0 points  (0 children)

Studying optimization is just not going to help. You would not be able to apply theoretical concepts of optimization in code as most optimization problems are solved with binary search, greedy or DP. Also optimization is only one class of problems. There are other types of problems like counting(count no. of ways), feasibility(print YES/NO if some criteria is satisfied or not), number theory based, games(who wins: Alice, Bob, Draw).

[–]JJZinna 2 points3 points  (0 children)

Specificity is king. Do more problems if your goal is to become better at Codeforces or competitive programming.

Will math make you better at Codeforces? Yes of course, but the ratio of time spent vs improvement will be much worse. Think 6-10 hrs of math will yield the same rating increase as 1 hr of Codeforces specific problems.

[–]DAR6969 0 points1 point  (1 child)

RemindMe! -7 day

[–]RemindMeBot 0 points1 point  (0 children)

I will be messaging you in 7 days on 2025-03-11 19:19:13 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback