Divide-and-Conquer
- tags: Algorithm
- WIKIEPEDIA: https://en.wikipedia.org/wiki/Divide-and-conquer%5Falgorithm
The points should been noted:
- The middle position is not
(right - left) / 2
, it must beleft + ((right - left) / 2)
.
The points should been noted:
(right - left) / 2
, it must be left + ((right - left) / 2)
.