Posts

Showing posts from April, 2019

The famous FizzBuzz problem

Today I came across the Developer survey results 2019 from stackoverflow.com . One of the questions asked in the survey was whether you have ever been asked to solve the FizzBuzz problem in an interview. I recollected that four years back I had coded this in an online test for an interview. I could write the code for it correctly, but the time I took was more than I should have. I decided to give it a try again today, and I feel this time I completed it in lesser time than in my attempt at the interview, but it was again not too great an improvement. After my code ran successfully, I looked over the internet for solutions posted by other people, in order to gain insights from them. I found my solution took a somewhat different approach. I couldn't find any solution that took the same approach as mine ,so I thought it would be nice to post my version of the solution. For those who don't remember the FizzBuzz problem, here is it : Write a program that prints the numbers ...