Practice Problem

Unique Paths II

Difficulty: Medium

Given an m x n grid with obstacles, count the number of unique paths from the top-left corner to the bottom-right corner, moving only right or down.