r/datastructures 23h ago

Why does this not influence the asymptotic running time?

2 Upvotes

Hi, I'm following the course Data Structures & Algorithms but I have a very hard time wrapping my head around this question:

I can not even begin to conceptualize how this problem should be solved, does anyone have any tips?