feat(content): function signatures + test cases

This commit is contained in:
2025-07-13 19:53:34 +01:00
parent b434eb3a49
commit a7d29b7cce
203 changed files with 4526 additions and 0 deletions

View File

@@ -8,6 +8,26 @@ categories:
patterns:
- greedy
function_signature: "def categorize_box(length: int, width: int, height: int, mass: int) -> str:"
test_cases:
visible:
- input: { length: 1000, width: 35, height: 700, mass: 300 }
expected: "Heavy"
- input: { length: 200, width: 50, height: 800, mass: 50 }
expected: "Neither"
hidden:
- input: { length: 10000, width: 1, height: 1, mass: 1 }
expected: "Bulky"
- input: { length: 1000, width: 1000, height: 1000, mass: 100 }
expected: "Both"
- input: { length: 100, width: 100, height: 100, mass: 99 }
expected: "Neither"
- input: { length: 1, width: 10000, height: 1, mass: 200 }
expected: "Both"
- input: { length: 9999, width: 9999, height: 9999, mass: 50 }
expected: "Bulky"
description: |
Given four integers `length`, `width`, `height`, and `mass`, representing the dimensions and mass of a box, respectively, return *a string representing the **category** of the box*.