### pashka's blog

By pashka, history, 16 months ago,

Hello Codeforces!

It's been a long time since I posted a lesson in EDU section. Sorry about that, was quite busy managing my course on Youtube.

New lesson is about two pointers method.

Go to EDU →

What topics you want to learn next? I would prefer topics not covered in my Youtube course, something more specific for competetive programming. Any ideas?

More about EDU section you can read in this post.

Thanks to Stepavly and Supermagzzz for their help with lecture notes and testing problems.

Enjoy the lesson and good luck on the contests!

• +553

 » 16 months ago, # | ← Rev. 4 →   +5 This is epic!Suggestions for future topics: Tries, Ternary search, TreesAlso I noticed that this lesson and this lesson are only available in Russian. It would be good if they can be translated into English so more people can learn. Thanks!
 » 16 months ago, # |   0 Ternary Search Please
•  » » 16 months ago, # ^ |   0 Hi! Ternary search is not much important if you know binary search. Ternary search problems can also be solved using binary search. In binary search you will go the mid element and check for the previous and next element and based on your check condition you can either go to left or right.
•  » » » 16 months ago, # ^ |   0 You can't do that if the values can be non-integer.
•  » » » » 16 months ago, # ^ |   0 I am just asking in curiosity. Even if the values are non-integer, and the error allowed in the problem is 'delta' (let which is generally 1e-6). Then can't we check for mid+delta and mid-delta and then eliminate half part according to the check condition.
•  » » » » » 16 months ago, # ^ |   0 You just explained terrnary search, the only difference is that usually in terrnary search the values you mentioned (mid-delta, mid+delta) are selected in a way that they divide the range into 3 equal parts (that's why it's ternary), which makes the code better and less likely to fail because of precision errors.
 » 16 months ago, # |   0 Your content is so amazing that this post came as a new year gift to me.
 » 16 months ago, # |   +3 Thanks for this. Suggestions : Graphs topics like Trees, DP on Trees, etc.
 » 16 months ago, # |   +31 FFT please! By the way, i appreciate your work.
 » 16 months ago, # |   +25 Sqrt Decomposition please
•  » » 16 months ago, # ^ |   0 I am not sure but do we need it when we have segtrees?
•  » » » 16 months ago, # ^ | ← Rev. 2 →   -10 i guess there are some differences on memory usage and time complexity witch makes it better than segtree in some cases.
•  » » » 16 months ago, # ^ |   0 Yes, of course. Square root decomposition can handle some types of queries that segment tree can't (or at least it isn't clear that you can handle them).
 » 16 months ago, # |   0 finally some gold stuff after a long time
 » 16 months ago, # |   +13 My suggestion would be Number Theory and Combinatorics.
 » 16 months ago, # |   +9 Epic !! Next courses suggestion — Tries
 » 16 months ago, # |   +3 what about SCC and topological sort, or 2-sat?
 » 16 months ago, # |   +2 Combinatorics, and NOT dp
 » 16 months ago, # |   0 Dynamic Programming is still a bottleneck. And the cp part of this topic is yet not covered on youtube.
 » 16 months ago, # |   0 combinatorics for next edu lecture please
 » 16 months ago, # |   0 Please take next topic: Graph, dynamic programming, Number theory!!
 » 16 months ago, # |   +1 Combinatorial counting theory please.
 » 16 months ago, # |   0 DP, Tries
 » 16 months ago, # |   0 string
 » 16 months ago, # |   0 topic suggestion: prefix sum.
 » 16 months ago, # |   0 Bitmasking dp please
 » 16 months ago, # |   0 Dp please.
 » 16 months ago, # |   0 Your content is great and very easy to understand! I think more lectures in some hard DP topics (e.g. DP knapsack on Tree, DP on Trie, DP Sum over subsets) or maybe some problems that are a combination of simpler algorithms (like, greedy + DAG, bitmask + shortest paths ...) would be very helpful for a lot of people that know all of the basics, yet struggling to apply them into actual problems.
 » 16 months ago, # |   0 Dp :D
 » 16 months ago, # |   0 Can please anybody help me out as I am new to codeforces, my doubt is that in div 2 #698 round i am able to solve only question without any incorrect submission to it, so my rating will increase or decrease? My current rating is 843.
 » 16 months ago, # |   0 What youtube courses is he talking about ? Can someone please share the link of his youtube courses ?
•  » » 16 months ago, # ^ |   0
•  » » » 16 months ago, # ^ |   0 Thank you! Very kind of you :)
 » 16 months ago, # |   0 PLEASE DO A COURSE ON COMPUTATIONAL GEOMETRY
 » 16 months ago, # |   0 Your dp videos are not available on Twitch can you make them if they are there!!! Thanks
 » 16 months ago, # | ← Rev. 2 →   0 Thanks for keep adding more lectures.Suggestions for future topics: MATHEMATICS, DATA STRUCTURES, GRAPH, STRING, GEOMETRY
 » 16 months ago, # |   0 Very helpful article, I also often use this method. Looking forward to your next articles.