feat(content): function signatures + test cases
This commit is contained in:
@@ -9,6 +9,30 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def predict_party_victory(senate: str) -> str:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { senate: "RD" }
|
||||
expected: "Radiant"
|
||||
- input: { senate: "RDD" }
|
||||
expected: "Dire"
|
||||
hidden:
|
||||
- input: { senate: "R" }
|
||||
expected: "Radiant"
|
||||
- input: { senate: "D" }
|
||||
expected: "Dire"
|
||||
- input: { senate: "RRDD" }
|
||||
expected: "Radiant"
|
||||
- input: { senate: "DRRD" }
|
||||
expected: "Dire"
|
||||
- input: { senate: "RRDDD" }
|
||||
expected: "Dire"
|
||||
- input: { senate: "DDRRRR" }
|
||||
expected: "Radiant"
|
||||
- input: { senate: "RDRDRD" }
|
||||
expected: "Radiant"
|
||||
|
||||
description: |
|
||||
In the world of Dota2, there are two parties: the **Radiant** and the **Dire**.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user