CodeChallenge LogoCodeChallenge

Beginner Coding Challenges

easy

Build solid programming intuition with curated challenges sorted from foundational logic to intermediate problem solving. Filter by difficulty, language, or topic to start practicing right in your browser.

Browse by Category

291 Challenges found
Title
Difficulty
Category
Likes
Action
Join Array with join()
Use Array.join() to concatenate all elements of an array into a single string with a separator.
EasyJavaScript
Like0
Solve
List Properties with Object.keys()
Use Object.keys() to return an array of a given object's own enumerable property names.
EasyJavaScript
Like0
Solve
Split and Join with String methods
Use String.split() to divide a string into parts and String.join() to combine them back with a different separator.
EasyJava
Like0
Solve
Sort Strings with localeCompare()
Use String.localeCompare() to compare two strings for alphabetical sorting, returning -1, 0, or 1.
EasyJavaScript
Like0
Solve
Sum of Natural Numbers
Compute the sum of all natural numbers from 1 to n using the formula n × (n + 1) / 2. Covers the Gauss arithmetic series and compares O(1) vs O(n) approaches.
EasyMath
Like0
Solve
Search with String.indexOf()
Use String.indexOf() to find the position of a character or substring within a string.
EasyJava
Like0
Solve
Convert with From Trait
Implement the From trait to convert a &str into a custom Name struct.
EasyRust
Like0
Solve
BST Inorder Successor
Find the next larger value (inorder successor) for a given value in a BST.
EasyTree
Like0
Solve
Deque Reverse
Reverse the order of elements in a deque. Teaches the two-pointer swap technique and its application to double-ended queue reversal.
EasyQueue
Like0
Solve
Loop with Range 0..n
Use Rust's 0..n range syntax with for loop to iterate over a sequence of numbers.
EasyRust
Like0
Solve
Deque Rotate
Rotate elements to the left by k positions (simulating deque rotation).
EasyQueue
Like0
Solve
Pad String with padStart()
Use String.padStart() to pad a string with leading characters until it reaches a target length.
EasyJavaScript
Like0
Solve
Tree Count Leaves
Collect all leaf node values from a complete binary tree. Teaches leaf detection by checking child index bounds.
EasyTree
Like0
Solve
Vector Size with len() and is_empty()
Use len() to get the number of elements in a Vec and is_empty() to check if it's empty.
EasyRust
Like0
Solve
Check NaN with Number.isNaN()
Use Number.isNaN() to reliably determine whether a value is NaN, unlike the global isNaN() which coerces values.
EasyJavaScript
Like0
Solve
Showing 1-15 of 291 Challenges
Previous
1