Skip to content

Comment on What real life bad habits has programming given you?

Comments

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.

I always do that too, but I never really thought that anybody could NOT do that :)

I 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!

I perform insertions of multiple denominations by pre-sorting the new bills and then just merge with wallet bills.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.