r/AskProgramming • • May 13 '26

Algorithms A simple FizzBuzz question, why does the interviewer need me to pull out an entire data structure for a 3 to 4 condition if statement

what happened to simplicity

0 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/Solonotix May 13 '26

I guess you could technically create a hashing function that is a bit mask of value & 15, populating the map with entries for 3, 5 and 15, but...yea, FizzBuzz isn't a problem for exploring hash maps lol.