General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Indently
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "The True Power of "ChainMap" in Python" video.
@JensRoland Yeah, just use a stack.
2
@Michallote For your case, just use a tree. Another possibility is a sparse array of arrays, but I'm not sure how efficiently Python would handle that. If we were talking about C and you were manually handling your data structures, then definitely a sparse array of arrays.
2