tracks

Sign In Sign Up
1/15
Big O
What is an algorithm anyhow?

An algorithm is just any method for arriving at the answer to a problem. It doesn't have to be a computer problem, either. A method for finding your cat to bring him to the vet or finding your way through a cornfield maze is just as much an algorithm as a method to find all the palindromes in a word.

Instructions

Take a look at the simple algorithm provided here and hit Save & Submit Code when you understand it and why it's an algorithm.

?
Stuck? Get a hint! Hint

An algorithm is just any set of steps to arrive at the solution to a problem. This algorithm solves the problem of printing "cat" to the console 5 times.

script.js
Back to Editor

Sign in