InterviewDB
Question
·
USA
Symbol Tracker: Track Declaration and Usage of Symbols Across a Codebase
phone
Question Details
Problem Implement a symbol tracker for a simple programming language. Given a list of events (declarations and usages), answer queries about symbol visibility and usage. Events: DECLARE(scope, name, type), USE(scope, name), ENTER_SCOPE(scope_id), EXIT_SCOPE(scope_id). Scopes are nested; inner scopes can see outer scope symbols. A symbol declared in an inner scope shadows an outer one. Follow-ups How do you implement scope lookup (walk up the scope chain)? What data structure represents the chain…
Full Details
🔒
Unlock all Jump Trading questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a reported interview question from a jump trading interview during the phone round.
More Jump Trading Interview Questions
1p3a
Jumptrading Quantitative Research Internship HR and Technical Phone Interviews
InterviewDB
Card Set Detection: Determine if a Hand of Cards Forms Valid Sets Under Custom Rules
InterviewDB
Networking and OS Conceptual Interview Questions: TCP, Processes, Memory, and Concurrency
1p3a
Jumptrading Quant Developer Fulltime Tech Phone Screen Interview
InterviewDB
Executable File Query Analyzer: SQL Queries on File Metadata with Aggregations