← Discussions on FizzBuzz
O orao
12 Oct 2026, 10:29

Asked in my NVIDIA OA last week.

Look for the pattern on small inputs first. Watch out for overflow; use long long in C++/Java.

2 replies

harini_13 23 hours, 10 minutes ago

Thanks! The dry run on the second example made it click.

tarun.p 1 hour, 10 minutes ago

This should be marked as the editorial approach honestly.

Sign in to reply.