chrisjacksonn/interview-sim / skills/sim
sim
VerifiedRun a timed coding assessment simulation in the terminal. Use for OA practice, GCA or ICA mocks, mock interviews, pairing rounds, take-homes, and pasted job postings.
questions/gca/bracket-check/problem.md
View on GitHub# Bracket Check
A config format uses three kinds of bracket: `()`, `[]`, and `{}`.
Write `solve(text)` returning `True` if every bracket in `text` is closed by a
matching bracket in the right order, and `False` otherwise.
- Characters that are not brackets are ignored entirely.
- A string with no brackets at all is balanced.
- Brackets must close in the order they were opened, so `([)]` is not balanced.
## Examples
```python
solve("a(b[c]d)e")
# True
solve("([)]")
# False
# The square bracket closes while the round one is still open.
solve("(((")
# False
solve("no brackets here")
# True
solve("")
# True
```
## Constraints
- `0 <= len(text) <= 200_000`
- Any characters may appear.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |