<p>I want to practice my skills away from a keyboard (i.e. pen and paper) and I'm after simple practice questions like Fizz Buzz, Print the first N primes.</p>

<p>What are your favourite simple programming questions?</p>

[{'answer_id': 29998, 'author': 'Niyaz', 'author_id': 184, 'author_profile': 'https://Stackoverflow.com/users/184', 'pm_score': 3, 'selected': False, 'text': '<p><strong>Problem:</strong>\nInsert + or - sign anywhere between the digits 123456789 in such a way that the expression evaluates to 100. The condition is that the order of the digits must not be changed.</p>\n\n<p>e.g.: 1 + 2 + 3 - 4 + 5 + 6 + 78 + 9 = 100</p>\n\n<p><strong>Programming Problem:</strong>\nWrite a program in your favorite language which outputs all possible solutions of the above problem.</p>\n'}, {'answer_id': 29999, 'author': 'coder1', 'author_id': 3018, 'author_profile': 'https://Stackoverflow.com/users/3018', 'pm_score': 1, 'selected': False, 'text': "<p>Towers of Hannoi is great for practice on recursion.</p>\n\n<p>I'd also do a search on sample programming interview questions.  </p>\n"}, {'answer_id': 30008, 'author': 'robintw', 'author_id': 1912, 'author_profile': 'https://Stackoverflow.com/users/1912', 'pm_score': 2, 'selected': False, 'text': '<p>There are some good examples of simple-ish programming questions in Steve Yegge\'s article <a href="http://steve.yegge.googlepages.com/five-essential-phone-screen-questions" rel="nofollow noreferrer">Five Essential Phone Screen Questions</a> (under Area Number One: Coding). I find these are pretty good for doing on pen and paper. Also, the questions under OOP Design in the same article can be done on pen and paper (or even in your head) and are, I think, good exercises to do.</p>\n'}, {'answer_id': 30047, 'author': 'OysterD', 'author_id': 2638, 'author_profile': 'https://Stackoverflow.com/users/2638', 'pm_score': 1, 'selected': False, 'text': '<p>Quite a few online sites for competitive programming are full of sample questions/challenges, sorted by \'difficulty\'. Quite often, the simpler categories in the \'algorithms\' questions would suit you I think.</p>\n\n<p>For example, check out <a href="http://www.topcoder.com/" rel="nofollow noreferrer">TopCoder</a> (algorithms section)!</p>\n\n<p>Apart from that, 2 samples:</p>\n\n<ol>\n<li><p>You are given a list of N points in the plane by their coordinates (x_i, y_i), and a number R>0. Output the maximum number out of the N given points that can be simultaneously covered by a disk of radius R (for bonus points: complexity?).</p></li>\n<li><p>You are given an array of N numbers a1 to aN, and you want to compute <code>a1 * a2 * ... * aN / ai</code> for all values of i (so the output is again an array of N elements) <em>without using division</em>. Provide a (non-naive) method (complexity should be in O(N) multiplications).</p></li>\n</ol>\n'}, {'answer_id': 30051, 'author': 'Nick', 'author_id': 1490, 'author_profile': 'https://Stackoverflow.com/users/1490', 'pm_score': 5, 'selected': True, 'text': '<p>I\'ve been working on <a href="http://projecteuler.net/" rel="noreferrer">http://projecteuler.net/</a></p>\n'}, {'answer_id': 30061, 'author': 'Kibbee', 'author_id': 1862, 'author_profile': 'https://Stackoverflow.com/users/1862', 'pm_score': 1, 'selected': False, 'text': "<p>I also like project euler, but I would like to point out that the questions get really tricky really fast.  After the first 20 questions or so, they start to be problems most people won't be able to figure out in 1/2 an hour.  Another problem is that a lot of them deal with math with really large numbers, that don't fit into standard integer or even long variable types.  </p>\n"}, {'answer_id': 30089, 'author': 'Jorge Córdoba', 'author_id': 2695, 'author_profile': 'https://Stackoverflow.com/users/2695', 'pm_score': 3, 'selected': False, 'text': "<p>If you want a pen and paper kind of exercises I'd recommend more designing than coding.</p>\n\n<p>Actually coding in paper sucks and it lets you learn almost nothing. Work environment does matter so typing on a computer, compiling, seeing what errors you've made, using refactor here and there, just doesn't compare to what you can do on a piece of paper and so, what you can do on a piece of paper, while being an interesting mental exercise is not practical, it will not improve your coding skills so much.</p>\n\n<p>On the other hand, you can design the architecture of a medium or even complex application by hand in a paper. In fact, I usually do. Engineering tools (such as Enterprise Architect) are not good enough to replace the good all by-hand diagrams.</p>\n\n<p>Good projects could be, How would you design a game engine? Classes, Threads, Storage, Physics, the data structures which will hold everything and so on. How would you start a search engine? How would you design an pattern recognition system?</p>\n\n<p>I find that kind of problems much more rewarding than any paper coding you can do.</p>\n"}]
['https://Stackoverflow.com/questions/29995', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1736/']