Skip to content

feat(coding-challenges): stack - decode string with an explicit context stack - #97

Merged
Irish-Joseph merged 1 commit into
mainfrom
feat/2026-09-25-16-coding-decode-string
Sep 25, 2026
Merged

Irish-Joseph merged 1 commit into
mainfrom
feat/2026-09-25-16-coding-decode-string

Conversation

@Irish-Joseph

Copy link
Copy Markdown
Owner

Adds coding-challenges/stack/decode_string.py (Medium) — the classic 3[a2[bc]] decode via an explicit stack of (outside_text, multiplier) frames, in a single left-to-right pass. Covers empty input, no brackets, nesting (the case a flat parse cannot do), and multi-digit multipliers, plus 200 random valid encodings cross-checked against a recursive reference parser.

Validation: python coding-challenges/stack/decode_string.py passed; full suite python scripts/run_challenges.py → 52/52.

…xt stack

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Irish-Joseph
Irish-Joseph merged commit 027b42c into main Sep 25, 2026
1 check passed
@Irish-Joseph
Irish-Joseph deleted the feat/2026-09-25-16-coding-decode-string branch September 25, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant