Comment Comment by deadnomore You are abusing big O which is worst case time complexity scaling. If I simplify your notation, then you just wrote O(1) parent deadnomore 2 days ago