LESSON 01 / 17

What Makes an Algorithm Correct?

An algorithm is correct when it gives the right output for every valid input and always finishes. “It worked on my example” is not enough.

🎓Hardlevel
⏱️13 minto finish
✏️2activities

📂 Correctness, Complexity & Quality🏷️ Complexity

🔒

You’ve finished your free lessons! 🎉

Create a free account to unlock every lesson, save your progress, keep your streak and get personal review suggestions. It takes 20 seconds.