Software Engineer • Staff-Level
Software Engineer • Staff-Level
High QualityPrep Other Coding Questions Asked by Jane Street
Continue with targeted prep from Jane Street's coding question bank.
Interview Summary
The Jane Street technical phone screen centered on implementing a small stack-based interpreter and then modifying an already compiled instruction stream to debug a faulty JUMP operation. The base problem was fairly straightforward. The more interesting follow-up required inserting debugging instructions before every JUMP while correctly rewriting jump targets because those insertions changed the instruction indices.
Interview Details
Part 1 — Implement a Stack-Based Interpreter
Design an interpreter for a simple stack-based language. The language supports the following instructions:
PUSH <primitive>: Push a primitive value onto the stack.POP: Remove the top element from the stack.PRINT: Print the value currently at the top of the stack.TRUNCATE <primitive>: Remove the specified number of characters from the value at the top of the stack.JUMP <index>: Continue execution from the instruction at the specified index.JUMP_IF_EMPTY <index>: Jump to the specified instruction if the value at the top of the stack is empty.
The interpreter executes a list of instructions while maintaining a stack and an instruction
Unlock Full Details
Create a free account to unlock this interview experience report.