Classical Programming Questions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Classical Programming Questions

What are the best classical coding challenges which need rather intuitive or creative thought? One of which i'm familiar with is replacing two variables without using a 3rd temporary variable. Do you know any other ones? Please share them here.

25th Nov 2018, 6:43 PM
Sina Khodabandehloo
Sina Khodabandehloo - avatar
2 Answers
+ 4
Not really classical challenges as such but here are some I came up with : 1. A list of 1000 numbers are entered as a list. A single number is then entered. Your program must see if any two numbers in the list add up to that single number. 2. Yet again, a list of 1000 numbers is entered. Your program must sort this list as quickly as possible without using any keywords that do it for you. 3. Try to make a prime number generator in a few lines as possible, it doesn't matter how quick it is.
26th Nov 2018, 5:28 PM
Eragon1980
Eragon1980 - avatar
+ 1
if you look for classical programming problems I can recommend - besides Sololearn of course ;) - geeksforgeeks and the Euler Project. This should keep you busy for a couple of years!
27th Nov 2018, 10:01 AM
Viktor Diezel