Skip to content
Search lessons, topics, tests…
Esc

    ↑ ↓ moveEnter openEsc close

    Coding

    C# coding problems

    Write C# in the browser. Real tests mark your code.

    112 problems

    Your plan

    How long do you want to prepare?

    30 problems, easy to medium. About one a day, 15 to 25 minutes each.

    Start: problem 1

    1. 1Does any value repeat?Hashing15 minLearn it firstEasyFree
    2. 2Two positions that add up to a targetHashing15 minLearn it firstEasyFree
    3. 3Count each characterDictionaries15 minLearn it firstEasyFree
    4. 4Reverse the words in a sentenceStrings15 minLearn it firstEasyFree
    5. 5Run-length codeStrings15 minLearn it firstEasyFree
    6. 6Balanced bracketsStacks15 minLearn it firstEasyFree
    7. 7The missing numberArrays15 minLearn it firstEasyFree
    8. 8A queue made of two stacksQueues15 minLearn it firstEasyFree
    9. 9Sort students by marks, then nameLINQ15 minLearn it firstEasyFree
    10. 10Is it a prime number?Loops15 minLearn it firstEasyFree
    11. Checkpoint after problem 10. Solve 2 earlier problems again, without hints:

      1. Does any value repeat?2. Two positions that add up to a target