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

@@ -27,6 +27,12 @@ test_cases:
expected: []
- input: { nums: [-4, -2, -2, -2, 0, 1, 2, 2, 2, 3, 3, 4, 4, 6, 6] }
expected: [[-4, -2, 6], [-4, 0, 4], [-4, 1, 3], [-4, 2, 2], [-2, -2, 4], [-2, 0, 2]]
- input: { nums: [0, 0, 0, 0] }
expected: [[0, 0, 0]]
- input: { nums: [-1, -1, -1, 2] }
expected: [[-1, -1, 2]]
- input: { nums: [3, 0, -2, -1, 1, 2] }
expected: [[-2, -1, 3], [-2, 0, 2], [-1, 0, 1]]
description: |
Given an integer array `nums`, return all the triplets `[nums[i], nums[j], nums[k]]` such that `i != j`, `i != k`, and `j != k`, and `nums[i] + nums[j] + nums[k] == 0`.