mcmodknower@programming.devtoProgrammer Humor@programming.dev•Returns a sorted list in O(1) time
9·
8 months agoyou can even have a case where you return the first element of the list if the list is not empty, and it will still be O(1).
you can even have a case where you return the first element of the list if the list is not empty, and it will still be O(1).
It didn’t load completely at first, so i saw something like this and i think it is even better that way:
As someone who used Prolog in an academic circumstance for more than just logic, i fully agree with that article.
But i still think C++ has more footguns than Prolog.