|
|
|
|
|
by keyb0ardninja
1778 days ago
|
|
> Makes a lot of sense, you could solve all these questions without knowing specific algorithms as long as you are good at problem solving - which is, I assume, the intent of the process. You could solve all these questions as long as you are good at problem solving, *given enough time*. However, with tight time constraints and perfomance pressure, the only way you could solve all these questions is memorizing and practicing all these algorithms. |
|
Apparently the correct answer is to use "Robert W. Floyd's tortoise and hare algorithm", which is trivial to explain and code.
The catch?
It took a decade of computer science research between the original statement of the problem and Floyd discovering the solution.
So... no worries, you have an hour, a marker, and a whiteboard. Your time starts: now.