3 ms·
I keep a lot of things sorted. For example, my wallet's money is always sorted. With multiple denominations of bills, the insertions aren't O(1) when I'm in l
by lallysingh 18y ago
I keep a lot of things sorted. For example, my wallet's money is always sorted.
With multiple denominations of bills, the insertions aren't O(1) when I'm in line if you know what I mean.
- Timothee 18y agoI always do that too, but I never really thought that anybody could NOT do that :)
- Devilboy 18y agoI perform insertions of multiple denominations by pre-sorting the new bills and then just merge with wallet bills.
- geedee77 18y agoI do this all the time - all bills have to be the same orientation and in order of smallest to largest value. If I take a few out of the ATM I'll stand there sorting them for a few seconds annoying the people queueing behind!