🏆 Olympiad & Challenge · Grades 4–5
Programming Olympiad: Think Like a Coder · Global edition
Think like a coder: algorithms, loops, search and more.
A free olympiad & challenge workbook for kids, ages 9–13 (Grades 4–5): 200 pages to do right on the screen (write, circle, join, draw and color, then check the answers) or to print. Every page is free for everyone, with no sign-up.

🏆 Your certificate
🏆 Your certificate is waiting!Finish every page of this book (all lessons and tasks) to unlock it.0 of 200 pages done · 200 to go · Keep going →
🧭 Learning path
Books that help before this one, and where to go after it.
📖 This book
📚 Similar books
What is inside
Algorithms Everywhere · 20 pages
- Welcome, Young Coder!
- What Is an Algorithm?
- Order Matters
- Be Exact!
- Robo on a Grid
- Grid Practice
- Write the Program
- Walls in the Way
- Find the Bug
- Turn Left, Turn Right
- The Turning Robot
- Input, Steps, Output
- Flowcharts
- A Fair Sharing Algorithm
- Unplugged: Human Robot
- Bebras Corner 1
- Bebras Corner 2
- Chapter 1 Quiz
- Chapter 1 Quiz 2
- Chapter 1 Review
Variables and Steps · 20 pages
- The Magic Boxes
- Making a Variable
- Changing a Box
- Trace Tables
- Trace It Yourself
- Words in Boxes
- Maths in Code
- The Remainder Trick
- Swapping Two Boxes
- Piggy Bank
- Order of Steps
- Asking the User
- Mini Calculator
- Good Box Names
- Bug Hunt: Variables
- Real Life: Game Score
- Olympiad Trace 1
- Olympiad Trace 2
- Chapter 2 Quiz
- Chapter 2 Review
Loops · 20 pages
- Robo Gets Bored
- The Repeat Block
- for Loops in Python
- Counting with range
- Adding in a Loop
- Gauss and the Loop
- Patterns with Loops
- Times Tables
- While Loops
- The Chessboard Rice
- Loop Bugs
- Loops Inside Loops
- Robo Draws Shapes
- Loop Detective
- Unplugged: Dance Loops
- Real Life: Machines
- Olympiad Loops 1
- Olympiad Loops 2
- Chapter 3 Quiz
- Chapter 3 Review
Decisions and Logic · 20 pages
- The Umbrella Question
- if in Python
- if and else
- Comparing Numbers
- elif: Many Choices
- Ticket Prices
- and, or, not
- Truth Tables
- Logic Gates
- Even or Odd?
- The FizzBuzz Game
- Leap Years
- Decisions in Loops
- Bug Hunt: Logic
- Unplugged: 20 Questions
- Real Life: Traffic Lights
- Olympiad Logic 1
- Olympiad Logic 2
- Chapter 4 Quiz
- Chapter 4 Review
Lists and Searching · 20 pages
- The Lunch Box Train
- Making a List
- Counting from Zero
- Changing Lists
- Looping over Lists
- Find the Tallest
- Linear Search
- The Lost Key
- Sorted Shelves
- Guess My Number
- Binary Search
- Dictionary Hunt
- How Many Guesses?
- Linear or Binary?
- Unplugged: Card Search
- Real Life: Phone Contacts
- Olympiad Lists 1
- Olympiad Lists 2
- Chapter 5 Quiz
- Chapter 5 Review
Sorting · 20 pages
- The Messy Line
- Why Sort?
- Bubble Sort
- One Bubble Pass
- Counting Swaps
- Bubble Sort in Full
- Selection Sort
- Selection Practice
- Insertion Sort
- Insertion Practice
- Sorting in Python
- Sorting Words
- The Fewest Swaps
- Counting Sort
- Sorting Networks
- Real Life: Sorting
- Olympiad Sorting 1
- Olympiad Sorting 2
- Chapter 6 Quiz
- Chapter 6 Review
Patterns and Recursion · 20 pages
- The Mirror Tunnel
- Functions First
- Functions That Return
- A Function Calls Itself
- Russian Dolls
- Factorial
- Fibonacci Stairs
- Stairs of 6
- Tower of Hanoi
- Hanoi Moves
- Solving 3 Discs
- Growing Trees
- Small Cases First
- Recursion Traces
- Unplugged: Hanoi with Coins
- Real Life: Folders
- Olympiad Recursion 1
- Olympiad Recursion 2
- Chapter 7 Quiz
- Chapter 7 Review
Grids, Mazes and Paths · 20 pages
- The Lost Puppy
- Grids in Code
- Counting Paths
- Paths in a 3 × 3
- Paths with Roadworks
- Flood Fill
- Counting Islands
- Waves from the Start
- Wave Practice
- Shortest Path, Step by Step
- Maze Race
- Roads and Towns
- The Cheapest Route
- Try Every Route
- Knight Moves
- Unplugged: Floor Maze
- Olympiad Grids 1
- Olympiad Grids 2
- Chapter 8 Quiz
- Chapter 8 Review
Clever Counting and Speed · 20 pages
- Two Ways to Add
- Counting Steps
- Loops in Loops Cost More
- Halving Is Fast
- The Phone Book Race
- Fast and Slow
- Counting Pairs
- Counting Choices
- Passwords and Locks
- Binary Numbers
- Binary Card Magic
- Powers of Two
- The Fake Coin
- Smart Shortcuts
- Unplugged: Binary Bracelet
- Real Life: Search Engines
- Olympiad Speed 1
- Olympiad Speed 2
- Chapter 9 Quiz
- Chapter 9 Review
Olympiad Finals · 20 pages
- Welcome to the Finals
- How to Solve a Task
- Final: Secret Codes
- Final: Parity Magic
- Final: Stacks of Plates
- Final: Queue at the Shop
- Final: Robot Programs
- Final: Loops and Ifs
- Final: Sorting
- Final: Mazes
- Final: Recursion
- Final: Logic
- Final: Binary
- Final: Speed
- Mock Exam Part 1
- Mock Exam Part 2
- Mock Exam Part 3
- Strategy Review
- Further Adventures
- Certificate
✏️ Do it on screenType answers, circle, join, draw and color with a finger, mouse or pencil.
✅ Check the answersEvery page checks itself and has an answer key for grown-ups.
🖨️ Print any pagePrint the whole book or a few pages, with or without answers.
More books like this
Grade 4 · Math StandardMath · Ages 9–10The whole Grade 4 math course, step by step, with lots of practice300 pagesGrade 4 · Math AdvanceMath · Ages 9–10Deeper math, early algebra and multi-step real-life challenges300 pagesGrade 4 · Math ChampMath · Ages 9–10Contest and olympiad thinking, logic, geometry and algorithms300 pagesMath Lessons & Practice · Grade 4Math · Ages 9–10260 pages of easy lessons, pictures that move, practice and answers260 pagesMath Lessons & Practice · Grade 5Math · Ages 10–11260 pages of easy lessons, pictures that move, practice and answers260 pagesMath Lessons Part 2: Challenge & Games · Grade 4Math · Ages 9–10Tricks, puzzles, logic, games and contest problems that go beyond Grade 4300 pages











