Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've seen a small list of relatively simple programming problems used to weed out candidates, just like FizzBuzz. Here are some of the problems I've seen, in order of increasing difficulty:</p> <ol> <li>Reverse a string</li> <li>Reverse a sentence ("bob likes dogs" -> "dogs likes bob")</li> <li>Find the minimum value in a list</li> <li>Find the maximum value in a list</li> <li>Calculate a remainder (given a numerator and denominator)</li> <li>Return distinct values from a list including duplicates (i.e. "1 3 5 3 7 3 1 1 5" -> "1 3 5 7")</li> <li>Return distinct values and their counts (i.e. the list above becomes "1(3) 3(3) 5(2) 7(1)")</li> <li>Given a string of expressions (only variables, +, and -) and a set of variable/value pairs (i.e. a=1, b=7, c=3, d=14) return the result of the expression ("a + b+c -d" would be -3).</li> </ol> <p>These were for Java, and you could use the standard libraries so some of them can be extremely easy (like 6). But they work like FizzBuzz. If you have a clue about programming you should be able to do most pretty quickly. Even if you don't know the language well you should at least be able to give the idea behind how to do something.</p> <p>Using this test one of my previous bosses saw everything from people who aced it all pretty quick, to people who could do most pretty quick, to one guy who couldn't answer a single one after a half hour.</p> <p>I should also note: he let people use his computer while they were given these tasks. They were specifically instructed that they <em>could</em> use Google and the like.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload