When do we use divide and conquer approach code example
Example: divide and conquer algorithm
divide and conquer:
split the problem into sub problems,
solve each sub problem to eventually solve the main problem
divide and conquer:
split the problem into sub problems,
solve each sub problem to eventually solve the main problem