- every bucket contains a hashmap where hashmap=line(0-50),hasmap=line(51-100) and every bucket act as node of linked list
- bucket is a hashmap only and every hasmap contains list(page).
but there is a common problem in both, i don’t understand how to code the updatelines and searchreplace methods, because updatelines can have multiple lines removed in the member variables of the class and this change should be at the address of the member variable…
in class versionimpl
private string nmae
private list list
so every change should be in list right? but in updatelines method when i iterate the list of bucket and then the list of page in it, the code is getting real messy.?
can someone help me walk through the logic a little, i am sure i am missing something crucial here?