This subpage is dedicated to the most inefficient, overengineered, and utterly useless algorithms in the universe.
Read MoreThis algorithm takes an input string and checks if it is equal to 'hello'.
function is_hello(s) {
if (s === "hello") {
return true;
} else {
return false;
}
}
This algorithm is known to take 37.5 milliseconds to run on a modern CPU, and is widely considered to be the most inefficient way to check if a string is equal to 'hello'.
Read More