logoalt Hacker News

HelloNurseyesterday at 8:24 PM2 repliesview on HN

There is a lot of room to do exactly the same thing more efficiently, which doesn't count as different algorithms.


Replies

questionableansyesterday at 8:52 PM

Are bubble sort and quick sort the same algorithm?

burnteyesterday at 9:19 PM

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.