code: def min_jumps_2(nums):
      n = len(nums)
      if n <= 1:
          return 0
  
      jumps = 0
      max_jump = 0
      new_max_jump = 0
  
      for i in range(n):
          if max_jump < i:
              max_jump = new_max_jump
              jumps += 1
  
          this_jump = i + nums[i]
          if this_jump >= n - 1:
              return jumps + 1
  
          new_max_jump = max(new_max_jump, this_jump)
  
label_desc: Use image node_id 2 for calling a global function with example usage: min_jumps_2(nums) and returns: int, unknown