Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by chipsrafferty on Friday September 12, 2025 @04:44PM
(#45226559)
I was once asked fizz buzz in an interview and it made me sad that some people don't pass it.
[ Parent
| on HN ]
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by koakuma-chan on Friday September 12, 2025 @04:58PM
(#45226695)
I guess when you're brand new you don't know about the mod operator?
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by IshKebab on Friday September 12, 2025 @05:27PM
(#45226963)
Yeah I've interviewed people who didn't.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by chipsrafferty on Friday September 19, 2025 @10:31AM
(#45302105)
Did you finish the interview or just call it there?
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by zahlman on Saturday September 13, 2025 @10:42AM
(#45232459)
Even if you don't know about modulo, or (floor) division, you could subtract in a loop and see if you reach zero. Obviously not a good approach, but would demonstrate the kind of basic problem solving skill and ability to "write any working code at all" that this sort of thing is supposed to screen for.
You could improve that and still avoid any division or modulus by simply keeping track of when the "next fizz" and "next buzz" should occur. (And output "fizzbuzz" when those numbers are the same and you reach them.)
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by chipsrafferty on Friday September 19, 2025 @10:31AM
(#45302102)
But if you're brand new, you aren't qualified for this job. I guess it was a quick way to assess, if you can't solve this in 60 seconds, we can end the interview early? But I thought it was odd still.