Programming job interview (again). Anyone have any unique questions or advice? - Page 2 - MacRumors Forums
 Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
 MacRumors Forums Programming job interview (again). Anyone have any unique questions or advice?

Nov 8, 2012, 06:52 PM   #26
ramy1989
macrumors newbie

Join Date: Nov 2012
Quote:
 Originally Posted by lee1210 FTFY =). The receptionist will validate your parking on your way out. =) Question wasn't to omit the value when evenly divisible, just append. The question didn't say inclusive or exclusive, so I made this an option.
"Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”."

It says instead of the number, I think that the instead is valid also for other cases, not sure, English is not my mother tongue
But "from 1 to 100", I think it's clear that is from 1 to 100, included.
0
Nov 8, 2012, 07:14 PM   #27
lee1210
macrumors 68040

Join Date: Jan 2005
Location: Dallas, TX
Quote:
 Originally Posted by ramy1989 "Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”." It says instead of the number, I think that the instead is valid also for other cases, not sure, English is not my mother tongue But "from 1 to 100", I think it's clear that is from 1 to 100, included.
Odd, a few posts above you I read "Write a function that takes an int N, and prints all numbers x between 0 and N on the standard output. Append "Fizz" if the number can be divided by 3, and "Buzz" if the number can be divided by 5."

We all win!

-Lee

Last edited by lee1210; Nov 8, 2012 at 07:25 PM.
0
Nov 9, 2012, 08:40 AM   #29
trevorde
macrumors newbie

Join Date: Mar 2011
Trick Question!

Quote:
 Originally Posted by Palad1 You have no idea how many people fail the FizzBuzz test.
I was asked this question and pointed out that one solution would be to have a lookup table for the result since, in my case, the maximum number was 100 ie the problem domain is bounded.

The same comment applies to finding a prime number greater than x. The set of prime numbers is well known (for all practical purposes), so a simple lookup table is sufficient.

I didn't get the job.
1
Nov 9, 2012, 10:46 AM   #30
RIRedinPA
macrumors newbie

Join Date: May 2011
Quote:
 2. Save the suit for weddings and funerals. Seriously, wearing a suit to a programming job interview will actually knock you down a bit. In most places, there will be some concern that you will not fit in, especially if (as is common) there will be peers among the interviewers. Strike some happy medium between a suit and shorts and sandals.
That's not particularly good advice. Do some due diligence on the company you are applying to, if it is a financial services firm, insurance or some other highly conservative field then the suit should not harm you at all and not wearing one might be a huge detraction. I have 3 options for interviews: Suit, Jacket no tie, business casual. Never make the assumption because the work environment is super casual you should come in for a interview in cutoffs and flip flops.

The poster is right though that fitting in to the environment is critical. Only 11% of people that get relieved of their position in the first 12 months are let go for lack of technical skills, the rest is because they did not fit it with the companies culture or play nice in the sand box.

However, I can tell you, from experience in being on both ends of the interview gun that those conducting the interview will be able to tell within a few minutes if you'll fit in. How someone dresses is less of a concern to me than how well they can do the job and get along with others.

Here's a few other tips: If this is the technical interview, where the head of the department and a few of his team members are there prepare for the team members to throw out obscure programming references which you will probably never heard of or use. This doesn't mean people will do it but my experience is that some people take this as an opportunity to show off in front of the boss. Just be expectant of that. When you get one of those questions don't panic and don't be afraid to say you don't know. It's how you handle not knowing something that is more revealing...one of the things I loved doing was throwing it back at Johnny Smartpants, something like, "I've never heard of that or worked with it but that sounds pretty interesting, could you explain it?" Half the time what they were talking of I had done but we called it something different.

Be enthusiastic. And know their company. If it is not a software development firm accept that you are a cost to the company and your clients are going to be all internal. Your not there to be some smart ass programmer with a God attitude but to help the folks in sales/marketing/some other business unit/ get their job done. (Yeah, we're smarter, just keep that attitude on the inside ; ) ).
0
Nov 9, 2012, 08:37 PM   #31
macrumors 68040

Join Date: Apr 2005
Quote:
 Originally Posted by trevorde I was asked this question and pointed out that one solution would be to have a lookup table for the result since, in my case, the maximum number was 100 ie the problem domain is bounded. The same comment applies to finding a prime number greater than x. The set of prime numbers is well known (for all practical purposes), so a simple lookup table is sufficient. I didn't get the job.
A lookup table isn't necessarily a good solution even if the set of numbers is bounded, because you still have to create the table. So if you only need to do the operation once, creating a table to do it is probably a waste. If it needs to happen many times, then a table can save you time (at the expense of memory).

Being able to reason about different solutions like this is probably an important skill to have for an interview.
0
Nov 10, 2012, 12:26 PM   #32
robvas
macrumors 68000

Join Date: Mar 2009
Location: USA
Quote:
 Originally Posted by dynafrom Is this a joke? Wear a suit to ALL professional interviews.
Not programming jobs - unless it's a position at a bank, consulting firm, or some place that will be formal. I probably wouldn't even want to work anywhere that requires their programmers to wear suits.

We tell our interviewees to just dress casual. We'd rather they come in ready to talk about programming and not worry if they are dressed up enough.
0

MacRumors Forums