Closed
Description
I think that binary search is a better representative of "divide and conquer" approach.
Even more, I suggest removing straightforward recursive fibonacci implementation from that group — it seems to belong to group "never do like this" (unless you have some cool recursion optimisation in your language).
The reason is, instead of "dividing and conquering", the problem is actually multiplied to two problems on each step (and one problem is equivalent to another one from previous step).
Maybe code like this would be closer to demo "divide and conquer", using fibonacci and recursion.
Metadata
Metadata
Assignees
Labels
No labels