feat(content): more test cases

This commit is contained in:
2025-07-13 19:25:39 +01:00
parent e28da5def2
commit 0f264ef603
94 changed files with 1840 additions and 0 deletions

View File

@@ -10,6 +10,24 @@ categories:
patterns:
- dynamic-programming
function_signature: "def unique_paths(m: int, n: int) -> int:"
test_cases:
visible:
- input: { m: 3, n: 7 }
expected: 28
- input: { m: 3, n: 2 }
expected: 3
- input: { m: 1, n: 1 }
expected: 1
hidden:
- input: { m: 7, n: 3 }
expected: 28
- input: { m: 3, n: 3 }
expected: 6
- input: { m: 10, n: 10 }
expected: 48620
description: |
There is a robot on an `m x n` grid. The robot is initially located at the **top-left corner** (i.e., `grid[0][0]`). The robot tries to move to the **bottom-right corner** (i.e., `grid[m - 1][n - 1]`). The robot can only move either down or right at any point in time.