What is the 5th Fibonacci number?
What kind of algorithms will we learn?
🎮
Simulation
You follow a set of rules step by step, like a recipe. You're not trying to be clever — you just do exactly what the problem says, one step at a time.
🏆
Greedy
At each step, you pick the best-looking option right now, without worrying about what comes later. Sometimes this works perfectly — but you have to know when!
🧩
Dynamic Programming
Some problems have subproblems that repeat. Instead of solving them over and over, you solve each one once, remember the answer, and reuse it.
How to solve a problem
🟢
Start program
Every solution begins here. Snap your blocks below this green block. It's already on the canvas — don't delete it.
🔴
End program
Every solution ends here. Your chain of blocks must connect all the way down to this red block.
📤
print answer
This is how you submit your answer. Snap a number or variable into it — the grader reads whatever you print.
🧰
Toolbox
The coloured panel inside each problem holds all your blocks: Inputs, Loops, Logic, Math, Variables, and Output. Drag from there onto the canvas.
Try it! Drag a 📤 print answer block from the Output toolbox and snap it between Start and End. Type Hello in the text field. Then press ▶ Run.
Expected Answer
Hello
Your Output
Run your program to see the result.
Recommended order — start here!
Browse by category