feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

@@ -10,6 +10,26 @@ patterns:
- dynamic-programming
- matrix-traversal
function_signature: "def min_path_sum(grid: list[list[int]]) -> int:"
test_cases:
visible:
- input: { grid: [[1, 3, 1], [1, 5, 1], [4, 2, 1]] }
expected: 7
- input: { grid: [[1, 2, 3], [4, 5, 6]] }
expected: 12
hidden:
- input: { grid: [[5]] }
expected: 5
- input: { grid: [[1, 2, 3, 4, 5]] }
expected: 15
- input: { grid: [[1], [2], [3], [4], [5]] }
expected: 15
- input: { grid: [[0, 0], [0, 0]] }
expected: 0
- input: { grid: [[1, 100], [1, 1]] }
expected: 3
description: |
Given a `m x n` `grid` filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path.