Balanced Brackets Check
Asked at Apple · Coding Questions · Difficulty: Easy
A string made only of bracket characters is balanced when every bracket is properly paired with another one. Decide whether a given string is balanced.
Loading the problem…
More Apple interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Compare PPO, DPO, and GRPO
- Implement a Vision Transformer (ViT) from Scratch
- Sample from a Gaussian Distribution Using Only Uniform Sampling
- Diagnose a CTR Drop After a Ranking Model Launch