3 ms·
I partially agree, but a bubble sort is slightly harder than FizzBuzz (?) and even if you give them the algorithm, it might be a little more fair since knowing
by scarface74 7y ago
I partially agree, but a bubble sort is slightly harder than FizzBuzz (?) and even if you give them the algorithm, it might be a little more fair since knowing how to do a nested for loop is less esoteric than the mod operator.
Now if someone did a BogoSort, I would hire them just for their ingenuity and sense of humor.
- james_s_tayler 7y ago10/10 I would go for randomize the array and check if it's sorted. Repeat if it's not. I like the people I work with to have a good sense of humor.