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

@@ -9,6 +9,30 @@ categories:
patterns:
- greedy
function_signature: "def make_strings_equal(s: str, target: str) -> bool:"
test_cases:
visible:
- input: { s: "1010", target: "0110" }
expected: true
- input: { s: "11", target: "00" }
expected: false
hidden:
- input: { s: "00", target: "00" }
expected: true
- input: { s: "00", target: "11" }
expected: false
- input: { s: "11", target: "11" }
expected: true
- input: { s: "10", target: "01" }
expected: true
- input: { s: "0000", target: "0000" }
expected: true
- input: { s: "1111", target: "0001" }
expected: true
- input: { s: "0001", target: "1110" }
expected: true
description: |
You are given two **0-indexed binary** strings `s` and `target` of the same length `n`. You can do the following operation on `s` **any** number of times: