Difference between ru1 and en1,
changed 331 character(s)
Здравствуйте. Я ищу какие-нибудь задачи на переливания (то есть когда в динамике по поддеревьям сливаются два множества, и если переливать большее в меньшее, то общее количество операций будет $O(nlogn)$ ). Если кто-нибудь знает такие задачи, напишите о них в комментариях, пожалуйстаHi! I am in search for problems that can be solved using the following technique: if we need to merge two sets in dfs, we put elements of the larger one into the smaller one, and in total asymptotics is $O(nlogn)$. If anyone knows of this kind of problems, i would be very grateful if you post some in the comments.