Practice problems
70 problems in Python or JavaScript. Each is checked by tests in your browser. Log in to save your solutions and earn XP.
Problem of the day · double XP
Armstrong number
medium Maths and loops · 40 XP for a first solve today
Basics
Strings
- Reverse a stringeasy10 XP
- Count the vowelseasy10 XP
- Capitalise each wordeasy10 XP
- Count the wordseasy10 XP
- Longest wordeasy10 XP
- Anagramseasy10 XP
- Count each charactereasy10 XP
- Palindrome sentencemedium20 XP
- Compress a stringmedium20 XP
- First unique charactermedium20 XP
- Balanced bracketsmedium20 XP
- Caesar ciphermedium20 XP
- Longest stretch without repeatshard40 XP
Lists
- Sum of a listeasy10 XP
- Largest number in a listeasy10 XP
- Count the even numberseasy10 XP
- Remove duplicateseasy10 XP
- Running totaleasy10 XP
- Move the zeros to the endeasy10 XP
- Split into chunkseasy10 XP
- Second largestmedium20 XP
- Rotate a listmedium20 XP
- Merge two sorted listsmedium20 XP
- Two summedium20 XP
- Flatten a listmedium20 XP
- Transpose a matrixmedium20 XP
- The missing numbermedium20 XP
- Spiral orderhard40 XP