code: def nth_fibonacci_3(n):
      dp = [0] * max(2, n + 1)
      dp[1] = 1
  
      for i in range(2, n + 1):
          dp[i] = dp[i - 1] + dp[i - 2]
  
      return dp[n]
  
file_path: coding-problems/Other/nth_fibonacci_number.py
imports: import math
label_desc: Use image node_id 3 for calling a global function with example usage: nth_fibonacci_3(n) and returns: dp