Problems for Beginners

Pie Are Squared
Given the radius of a circle, calculate and print its area. The area of a circle can be computed usi...
Missing Number
Given the sum of four numbers and three of those numbers, find the missing number. All four numbers ...
Maximum
Given N numbers, find the one that is of the highest value and print it.
Mixed Fractions
Given an improper fraction (as the numerator $N$ and the denominator $D$), determine and print it in...
Math and Watermelons
Your friend has M watermelons. He doesn't want to share them with anyone, but let's imagine he would...
Is Palindrome
Given a word, print Yes if it is a palindrome, otherwise No. A palindrome is a word which reads the ...
Making Friends
Byang is going to join a new school. His new class has N students. Each of the students are identifi...
Is Anagram
An anagram is a word formed by rearranging the letters of another word. The words "listen" and "sile...
Is Prime
Given an integer $N$, determine if it is a prime a number. A number is called prime if it is only di...
Leap Years
In the Gregorian calendar, certain years have 366 days instead of 365. In such years, the month of F...
Incompatible Crops
Did you know that certain crops cannot grow next to each other? Given the layout of a field as a gri...
Pascal's Triangle
Given an integer N, print the sum of the Nth row of the Pascal's triangle. In mathematics, Pascal's ...
Little Subarray Sum
Given an array of N numbers and two indices, determine the sum of the numbers in the array between (...
Neat Brackets
Given a sequence of opening and closing parentheses ("(" and ")") you will have to determine if it i...
Little Matrix Multiplication
Given two 2×2 matrices, calculate the product of the two matrices. The product of two 2×2 matrices w...
Mines
The game of mines is a tricky one. You start with a grid and you click your way through the cells to...
N-th Prime
In this problem, you will have to print the n-th prime number. The first few prime numbers are given...
Itsy's Magic Cards
Itsy needs your help with her magic cards. Her magic cards grant her special spider-witch powers. Un...
Matching Brackets
You will be given a sequence of opening and closing brackets of different types ((, ), [, ], {, and ...
Prime Factors
Given an integer N, can you determine its prime factors?
Itsy's Triangles
Itsy went for a walk and found several sticks in the park. She is wondering how many of these sticks...
PotatoDB v1.0
You are building a new database software: PotatoDB. PotatoDB is meant to store numbers and handle th...
Knapsack
You have a backpack that can carry a maximum weight of C. You will also be given a set of items, the...
Painting a Red X
The ground floor of AUST has been renovated. It now looks like a square with N×N tiles. The tiles ar...
One-dimensional
Imagine there are several lines in an one dimensional space. You are given the starting and ending p...
Toph uses cookies. By continuing you agree to our Cookie Policy.