tags:

views:

3594

answers:

7

What are some interesting programming exercises/problems?

Also include the language (if relevant).

+1  A: 

Programming Challenges

http://www.amazon.com/Programming-Challenges-Steven-S-Skiena/dp/0387001638

Otávio Décio
cool! didn't even think about programming challenges books (should have though ><)
Devoted
C, C++, Pascal, Java mainly btw
Devoted
+2  A: 

PythonChallenge.com

More puzzle oriented - you use the pictures and other info on page (aka view source) to solve your way to the next html puzzle page.

Devoted
+1  A: 

Maybe too simple, but I enjoyed working through Tower of Hanoi

cmsjr
no, its a classic problem - surprisingly i haven't even solved it yet
Devoted
+4  A: 

There are a number of great problems at Project Euler. In addition to providing interesting problems, the site will track your scores and progress.

Gordon Wilson
+1  A: 

Not entirely sure if this is the sort of thing you're after, but the following page has15 Exercises for Learning a new Programming Language

RSlaughter
+1  A: 

It depends on what you're trying to accomplish in your exercises. i.e. introducing high-school students to programming or keeping an experienced programmer sharp and on his game.

To help me understand a new language(loops, lists, structures, etc.) I always try to build a "deck of cards" library. I'm a huge fan of the game Blackjack. It has simple rules and can easily be implemented in almost any language.

I already have a strong grasp of programming concepts, so this is always the best challenge for me to understand the basics of a new language that I want to try out. But to do a great game of 21, I need a good deck of cards. And possibly, a pizza.

Jerry
+1  A: 

Try writing an interpreter for a simple programming language, such as Brainf*ck if you've never done anything like that before.

HappyCodeMonkey