======================= DP: Dynamic Programming ======================= -------- Examples -------- Java ==== .. code-block:: java int fibonacci(int i) { if (i == 0) return 0; if (i == 1) return 1; return fibonacci(i - 1) + fibonacci(i - 2); }