Comment by the_af Comment by the_af 9 hours ago 1 reply Copy Link View on Hacker News By the way, ChatGPT was able to solve this problem and give the correct solution.
Copy Link Jtsummers 9 hours ago Collapse Comment - It's in numerous algorithms textbooks and probably a lot of code repositories, so that's not surprising. Reply View | 0 replies
It's in numerous algorithms textbooks and probably a lot of code repositories, so that's not surprising.