Is there any good tutorials on persistent data structures?
I've seen many solutions for this problem, some uses bitwise trick and some used graphs and dfs which i don't really get how can it be applied to such a problem.
Would any of you mind explaining his approach?
Many Thanks.