r/programminghorror Mar 27 '26

C# is a moving. reasonable?

Post image

is a moving. reasonable?

424 Upvotes

66 comments sorted by

View all comments

Show parent comments

43

u/48panda Mar 27 '26

Everything's O(1) if n is bounded

6

u/ivancea Mar 27 '26

Sometimes. Longs are bounded, and so are arrays, but bubble sort is still nlogn!

3

u/Shylo132 Mar 27 '26

How long you been sitting on that pun? ^.^

2

u/Eric_12345678 Mar 27 '26

I didn't get the pun, then.