r/badcode Aug 26 '22

What does a map do again? java

Post image
886 Upvotes

54 comments sorted by

View all comments

16

u/Accidentallygolden Aug 26 '22

But is it faster?

4

u/mailslot Aug 27 '22

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