Strings Exactly One Edit Apart
Asked at Apple · Coding Questions · Difficulty: Medium
Two strings are one edit apart when a single change turns one into the other. Implement a function that decides whether two given strings are exactly one edit apart.
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