What is the "base case and build" approach to solving a technical question?
What is the "base case and build" approach to solving a technical question?
1. Solve the problem first for a base case (e.g. n = 1).
2. Solve the problem for the next case, assuming the answer for the previous (base) case is already known (e.g. n = 2).
3. Continue solving the problem for each next case (e.g. n = 3... 4... etc) until able to create a solution that uses previous cases to solve the current case.