I am learning programming for about 6 years now especially algorithms and I know a number of advanced data structures such heavy light decomposition, dekart tree, persistent tree and algorithm that you requiere is quite simple. I have solved many algorithmic problems on various websites such as codeforces and hackerrank. You can check my activity below is mentioned my username.
username: vaxo9910