keon / algorithms

Minimal examples of data structures and algorithms in Python
MIT License
23.77k stars 4.59k forks source link

"delete_fixup" optimization #873

Closed izveigor closed 1 year ago

izveigor commented 1 year ago

"==" or "!=" can raise exception (maximum recursion depth), because they compares all fields of all nodes. "is" checks that objects have the same pointer in the memory.