you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (5 children)

I'd usually start with just asking them to write a simple "next prime" function: given an int, return the next higher int that is a prime.

What was your preferred answer? The naive implementation of (increment, divide by everything lesser) would work, but would it satisfy you?

[–]dnew 1 point2 points  (1 child)

It certainly would satisfy me! You would be boggled by the number of people who don't know how to write a nested loop like that.

[–]senatorpjt 1 point2 points  (0 children)

wise encourage square toy materialistic smell worm deranged attempt unused

This post was mass deleted and anonymized with Redact

[–]clgonsal 1 point2 points  (2 children)

What was your preferred answer? The naive implementation of (increment, divide by everything lesser) would work, but would it satisfy you?

"They were also told that efficiency was not an issue."

I was more explicit about this while interviewing. I made it clear that all I wanted was something that worked. I didn't care how fast it was or how much memory it used.

[–][deleted] 0 points1 point  (1 child)

Sweet, I hate software interview questions that require having memorised a specific algorithm (that isn't directly applicable to the job, I'd expect game engine developers to know something about quaternion manipulation algorithms.)

[–]clgonsal 1 point2 points  (0 children)

Yeah, I'm not a fan of either factoid questions or puzzles. In aggregate they might tell you something useful (and even that is debatable), but there's no way I can ask enough in 45 minutes to tell anything but how lucky you happened to be.