Transform String
Asked at Jane Street · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026
A string S consisting of the letters A, B, C and D is given. The string can be transformed either by removing a letter A together with an adjacent letter B, or by removing a letter C together with an adjacent letter D.
Loading the problem…
More Jane Street interview questions
- Design a Supermarket Queue
- Count Numbers Containing Digit 4 from 1 to 1000
- Estimating Citywide Plastic Bag Usage Based on Population Data
- Stream Transformer: Reconstruct a Sparse Time×Code Matrix Row by Row
- Stack-Language Interpreter and Jump-Debugging Program Rewriter
- Implement a Code Editor Supporting Code Block Collapse/Expand (Shrink/Expand)