This is my personal note and might be some kind of user editorial/learning material for some people!
This is the second episode of this "note" series. I will write notes on problems (normally around 2400-ish problems), which are completely solved without looking at the editorial, that are both interesting and educational. I normally will spend a few hours on each problem so please be patient when reading the blog. The problem on these notes should give a very interesting solution and will likely be optimizations problems (I feel like these problems have an IOI-style, which requires you to find some incomplete solution first then find the final solution using it).
If you want to motivate me to write a continuation (aka note 3), a significant upvote from you would be well appreciated! If I received lots of downvotes (because I'm also spending a lot of time to write this and to learn latex only to express my ideas accurately to you guys), I'm probably not gonna continuing writing these blogs.
Problem summary:
Given a set of edges connecting two nodes, we must take at least one node from each edge's end.
Let the taken nodes to be $$$a_{1}, a_{2}, ..., a_{p}$$$ in sorted order.
Maximize $$$\min_{1 \leq i \leq p-1}(|a_{i}-a_{i+1}|)$$$. If $$$p=1$$$, the value would be $$$N$$$.
Again, attempt the problem yourself before continue reading this blog.
Comment on this problem and my feelings:
Tips for implementation:
Hope you guys learnt something from this blog.