Divide and Conquer
Example: Adding numbers
# Addition of numbers
3 + 6 + 2 + 4
# Subproblem 1: 3 + 6
3 + 6 is 9
# Subproblem 2: 2 + 4
2 + 4 is 6
# Combine the Subproblems
9 + 6 = 15Recursion
Recommended Chapter: Recursion
Last updated