Optimize and Solve Techniques Sep 19, 2017


BUD

DIY

Simplify and Generalize

Downcast the problem to a easier one. e,g,: String --> Character

Base case and Build

Calculate from n=1.
When calcultate n=2, check whether can based on n=1 result.
When calculate n=3, check n=2, n=1 result. ----------This type is often recursive.

Data Structure Brainstorm


Back;
Home
Top