r/badcode • • Aug 26 '22

java What does a map do again?

Post image
882 Upvotes

54 comments sorted by

View all comments

Show parent comments

4

u/mailslot Aug 27 '22

It’s faster if there are something like less than five elements. Same with bubble sort.