1. Problem Statement (Simple Explanation) Similar to Unique Paths (62) , but now we have obstacles . You’re given an m x n grid obstacleGrid: 0 = free cell. 1 = obstacle. Robot: Starts at top-left: (0, 0). Wants to reach bottom-right: (m-1, n-1). Can only move right or down . Cannot step on cells with obstacles (1). Return the number of unique paths from start to goal, avoiding obstacles. Answer is guaranteed ≤ 2 * 10 9 . 2. Examples Example 1: Input: obstacleGrid = [ [0,0,0], [0,1,0], [0,0,0] ] There is one obstacle in the middle (1,1). Valid paths: Right → Right → Down → Down Down → Down → Right → Right Output: 2 Example 2: Input: obstacleGrid = [ [0,1], [0,0] ] Only one path is valid due to the obstacle at (0,1): Down → Right Output: 1 3. Approach – Dynamic Programming with Obstacles (O(m·n)) We extend the DP approach from Problem 62, but...