Other than just FizzBuzz to test programmer candidates

  • Thread starter Thread starter symbolipoint
  • Start date Start date
symbolipoint
Homework Helper
Education Advisor
Gold Member
Messages
7,640
Reaction score
2,074
TL;DR
Through trying a web search I found nothing outside of FizzBuzz for testing programmer candidates' skills. What other games or tests are used other than FizzBuzz?
No. This should not be "too long didn't read".

FizzBuzz is a way to check on the qualifications of a candidate for a programmer job. What other ways to do this are also known or used, OTHER THAN just FizzBuzz?

Doubtful that any reader here needs some reference, but https://en.wikipedia.org/wiki/Fizz_buzz
 
Technology news on Phys.org
Convert a number to an Excel column letter (i.e. 1 -> A, 2 -> B,..., 26 -> Z, 27 -> AA etc). This was described to me as difficult in the sense that your first guess will probably not be correct, but as long as you have sensible test cases it's easy to refine to the correct answer. And you can make one that works for old Excel (max two letters), new Excel (max three letters), or generalises the rules to any integer.
 
I have sometimes asked candidates to use around 4 hours on a small program that can read in a text file and then calculate and show the Lix of the text. They were free to choose language and style (command line/GUI) as long as the result could be run with minimum effort. The main purpose was to see how they overall would address the problem and solution rather than only check that they can produce perfect code, so requirements were deliberately vague.
 
Filip Larsen said:
I have sometimes asked candidates to use around 4 hours on a small program that can read in a text file and then calculate and show the Lix of the text. They were free to choose language and style (command line/GUI) as long as the result could be run with minimum effort. The main purpose was to see how they overall would address the problem and solution rather than only check that they can produce perfect code, so requirements were deliberately vague.
People really need four hours for that? Seems like it would be about ten lines in python, maybe a bit more if you can't fit the whole document in memory.
 
Ibix said:
People really need four hours for that?
It was not an on-premise test. The arrangement was I mailed them in the morning and expected answer in afternoon. They could answer early if they liked, though none did. This was also decades ago before the days of AI answers, so that form may not work well today.
 
  • Like
Likes   Reactions: Ibix
Ibix said:
Convert a number to an Excel column letter (i.e. 1 -> A, 2 -> B,..., 26 -> Z, 27 -> AA etc).
Can you just define an array to do that conversion? That's how I used to do conversions like that.

EDIT/ADD:
I would probably just define a 26-element array, and then reuse it with some math for numbers > 26...
 
berkeman said:
Can you just define an array to do that conversion? That's how I used to do conversions like that.

EDIT/ADD:
I would probably just define a 26-element array, and then reuse it with some math for numbers > 26...
If you do it that way, "reuse it with some math" is where the tricky bit is.
 

Similar threads

  • · Replies 40 ·
2
Replies
40
Views
5K
Replies
29
Views
5K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
17
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
8K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K