Hacker News new | ask | show | jobs
by HelloNurse 5 days ago
There is a lot of room to do exactly the same thing more efficiently, which doesn't count as different algorithms.
3 comments

Are bubble sort and quick sort the same algorithm?
Go take an algorithms 101 class. That's literally all it is: learning how to write different algorithms to do the same thing more efficiently.
But they COULD be entirely different algorithms. And frankly, even if they're only 20% different, that's still different.

An algorithm is a sequence of steps and logic. You can create many different sequences to still get the same result.