CodenQuest
Sign In
Continue on iOS
Continue on Android
Questions
100 days of code
Perfect for Beginners
Week 1
0/9
Sum of Two Numbers
Math
Calculate the sum of two numbers.
2m
Minutes to Seconds
Math
Convert minutes to seconds
2m
Access First Element
Array
Retrieve the first element from a non-empty array
2m
Less than 42
Math
Determine if the sum of two numbers is less than 42
2m
Space Fuel Calculation
Math
Calculate the total fuel needed for a space journey, based on the distance and a minimum fuel reserve requirement
2m
Compare String Lengths
String
Check if two strings have the same length
2m
Check String Length
String
Determine if the length of a given string is a multiple of three
2m
Access Last Element
Array
Retrieve the last element from a non-empty array
2m
Calculate Absolute Value
Math
Find the absolute value of a given number
2m
Week 2
0/9
Find Index
Array
Find the index of a given target value in an array
5m
Convert Hours and Minutes to Seconds
Math
Convert a time given in hours and minutes to its equivalent in seconds
2m
Concatenate First and Last Name
String
Concatenate two strings representing a first name and a last name, separated by a space
2m
Concatenate Two Arrays
Array
Combine the elements of two arrays into a new array
5m
Check if Array Contains Number
Array
Determine if a given number is present in an array of integers
5m
Check Last Character
String
Determine if the last character of a string is 'C' or 'Q', case-insensitive
5m
Filter Outside Range
Array
Filter out elements from an array that are outside a specified range
5m
Increment Array Elements
Array
Create a new array by adding one to each element of the given array
5m
Count Occurrences
String
Count how many times a specific character appears in a given string
10m
Week 3
0/8
Reverse Array Elements
Array
Reverse the order of elements in an array of integers
2m
Remove First N Characters
String
Remove the first N characters from a given string. If N exceeds the length of the string, return an empty string
5m
Count Words
String
Count the number of words in a given string
5m
Check for Spaces
String
Determine if a given string contains one or more spaces
5m
Repeat String
String
Create a new string by repeating a given string a specified number of times
5m
Concatenate First and Last Characters
String
Create a new string by concatenating the first and last characters of the given string
5m
Count Vowels
String
Count the number of vowels in a given string
5m
Common Elements
Array
Identify the common elements between two arrays
10m
Week 4
0/8
Is Average Whole Number
Array
Math
Determine if the average of an array of integers is a whole number
10m
Calculate Factorial
Math
Recursion
Compute the factorial of a number using recursion
10m
Pattern Index
String
Find the starting index of a substring within a string
10m
Identify Extra Character
String
Find the character that is present in the modified string but not in the original string
10m
String Addition
String
Math
Add two non-negative numbers represented as strings without using built-in conversion functions
10m
Binary Complement
Math
Bit Manipulation
Calculate the binary complement of a given number
10m
Boat Docking Availability
Array
Determine if it's possible to dock all new boats without adjacent placements
10m
Self Dividing Numbers in Range
Math
Find self-dividing numbers within a given range
10m
Week 5
0/8
Indices for Two Sum
Array
Hash Table
Binary Search
Find the indices of the two numbers in an array that add up to a specific target sum
10m
Calculate Fuel for Advanced Spaceship
Math
Calculate the total fuel required for an advanced spaceship
10m
Convert Timecode to Seconds
String
Math
Convert a timecode string in the format hh:mm:ss to total seconds
10m
Happy Number
Math
Check if a given number is a 'happy' number
10m
Power of Two
Math
Determine if a number is a power of two
10m
Match Words Pattern
String
Determine if a string of words follows a given pattern
10m
Validate Capitalization Usage
String
Check if a word uses capital letters correctly
10m
Attendance Award Eligibility
String
Check if a student's attendance record qualifies for an award
10m
Week 6
0/7
Merge Two Sorted Arrays
Array
Sorting
Merge two sorted arrays into one sorted array
10m
XOR Value Pair
Bit Manipulation
Find the minimum XOR value that can be obtained from pairing elements in an array
10m
Check Anagram
String
Determine if one string is an anagram of another
10m
Reverse Words in Sentence
String
Reverse characters of each word in a sentence
10m
Return to Origin
String
Check if a sequence of moves returns the sailboat to the origin
10m
Find Pivot Index
Array
Find the pivot index where left and right sums are equal
10m
Add to Array-Form of Number
Array
Math
Add an integer to an array-form number
10m
Week 7
0/7
Merge Two Sorted Lists
Linked List
Recursion
Merge two sorted linked lists into one sorted linked list
15m
Reverse Linked List
Linked List
Recursion
Reverse a singly linked list
15m
Find Minimum and Maximum
Array
Identify the minimum and maximum values in an array
10m
Calculate Median Value
Array
Math
Determine the median value of an array of integers, rounding down if necessary
10m
Perfect Square
Math
Determine if a given number is a perfect square without using the sqrt function
10m
Repeated Substring Pattern
String
Determine if a string can be constructed by repeating a substring multiple times
10m
Maximum Product of Three Numbers
Array
Find the maximum product of any three numbers in an array
10m
Week 8
0/8
Valid Parentheses
String
Stack
Check if a string of parentheses, brackets, and braces is balanced
15m
Invert Binary Tree
Tree
Depth-First Search
Breadth-First Search
Binary Tree
Invert a binary tree by swapping all left and right child nodes
10m
Is Palindrome
String
Determine if a given string is a palindrome
10m
Remove Duplicates from List
Linked List
Remove all duplicates from a sorted linked list, leaving only distinct numbers
10m
Check Symmetric Tree
Binary Tree
Recursion
Determine if a binary tree is a mirror of itself (symmetric around its center)
10m
Mismatch Array
Array
Identify the duplicate and missing number from a sequence
10m
Longest Increasing Subsequence
Array
Determine the length of the longest contiguous increasing subsequence
10m
Flip and Invert Image
Matrix
Flip each row horizontally and invert binary values of a matrix
15m
Week 9
0/7
Check Identical Trees
Binary Tree
Recursion
Determine if two binary trees are identical
15m
Insertion Sort
Array
Sorting
Sort an array using the insertion sort algorithm
15m
Maximum Subarray Sum
Array
Dynamic Programming
Find the maximum sum of a contiguous subarray in an array of integers
15m
Rectangle Overlap Check
Math
Check if two axis-aligned rectangles overlap
15m
Lemonade Stand
Array
Check if change can be given for all customers at a lemonade stand
15m
Middle Node of Singly Linked List
Linked List
Return the middle node of a singly linked list
15m
Check if Binary Tree is Uni-valued
Binary Tree
Depth-First Search
Determine if all nodes in a binary tree have the same value
15m
Week 10
0/9
Reverse Letter Cases
String
Create a new string by reversing the case of each letter in the given string
10m
Reverse Bits
Bit Manipulation
Reverse the bits of a given 32-bit unsigned integer
10m
Repetive Ones
Array
Calculate the longest stretch of consecutive sunny days from a sequence of weather entries
10m
Flood Fill
Matrix
Breadth-First Search
Depth-First Search
Perform a flood fill on an image starting from a specific pixel and change connected pixel colors
15m
Toeplitz Matrix
Matrix
Check if a matrix is Toeplitz, where each diagonal has identical elements
15m
String Comparison After Backspaces
String
Compare two strings after processing backspaces denoted by '#'
15m
Reverse Only English Letters
String
Reverse English letters in a string, keeping other characters in place
15m
BiTree Cousins
Binary Tree
Depth-First Search
Determine if two nodes in a binary tree are cousins
15m
Stone Weight
Array
Find the weight of the last stone (or zero) after all others have been combined or destroyed according to the game's rules
10m