InterviewDB Question · USA

Symbol Tracker: Track Declaration and Usage of Symbols Across a Codebase

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 access

About This Question

This is a reported interview question from a jump trading interview during the phone round.

It covers the following topics: Coding, Onsite, Phone .