feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 8544efb5bf
commit e0bf8cda01
134 changed files with 2075 additions and 0 deletions

View File

@@ -11,6 +11,26 @@ patterns:
- greedy
- intervals
function_signature: "def find_longest_chain(pairs: list[list[int]]) -> int:"
test_cases:
visible:
- input: { pairs: [[1, 2], [2, 3], [3, 4]] }
expected: 2
- input: { pairs: [[1, 2], [7, 8], [4, 5]] }
expected: 3
hidden:
- input: { pairs: [[1, 2]] }
expected: 1
- input: { pairs: [[1, 10], [2, 3], [4, 5]] }
expected: 2
- input: { pairs: [[-10, -5], [-3, 0], [1, 5]] }
expected: 3
- input: { pairs: [[1, 5], [2, 3], [4, 6]] }
expected: 2
- input: { pairs: [[1, 2], [3, 4], [5, 6], [7, 8]] }
expected: 4
description: |
You are given an array of `n` pairs `pairs` where `pairs[i] = [left_i, right_i]` and `left_i < right_i`.