Back to Session 1
🧮

Algorithm Principles

Definition

Expressing an already known process in a sequence of steps, when others follow it, gives similar results.

Core Principles

01
👥

End User Experience

Think about who will use your solution. Make it easy, fast, and simple for them to understand and use.

02

Correctness

Your solution should give the right answer every time. Test it with different inputs to make sure it works properly.

03
📝

Meaningful Variable Names

Use clear names that explain what things are. Instead of "x" or "a", use names like "age" or "total_price".

04
🔄

Multiple Solutions

There's always more than one way to solve a problem. Try different approaches and pick the best one for your situation.

05
♻️

No Duplicate Code

Don't write the same code twice. If you need to repeat something, create a reusable function instead.