Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

This question already has an answer here:

I am interested in learning some new programming languages and looking for the collection of short solutions for programming problems provided in different languages. The optimal format would be:

Problem description
Language A: .... (solution)
Language B: .... (solution) etc

It would be best if I could sort/filter the samples basing upon the languages and programming paradigms.

What I am currently doing is using the Project Euler and some other sites for programming contests where I first have to solve a problem on my own and then I can pick the examples in the languages I am interested in the forum thread of this particular problem. This is ok, but sometimes it is a somewhat too long way for me.

share|improve this question
    
SO , just search a problem in stackoverflow and put name of the language that you want in your query :-) –  Mona Feb 1 '12 at 22:06
add comment

marked as duplicate by gnat, Jalayn, World Engineer Mar 26 '13 at 23:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 5 down vote accepted

Rosetta Code is the first one which comes to my mind. Though I find it not very helpful, personally for me.

As to my practice, stating the problem and trying to dissect it to simplest task, and then trying to solve each simple task is indeed a good way to learn new language, but stackexchange actually influenced me more than any such resource.

share|improve this answer
add comment

http://www.codechef.com/ has a lot of challenges if you like that sort of things.

I like it because it compares efficiency between languages which can help you decide effectively on what language would be best for a given task.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.