InterviewDigestInterviewDigest

OA Practice Workspace

Technical Interview2026-08-17

Algorithm questions primarily from linked lists, graphs, stacks, and queues

AI-Expanded — inferred from the question title, not from the original candidate report

Given a directed graph represented as an adjacency list, implement a function that uses a queue to perform a topological sort of the nodes. If the graph contains a cycle, the function should return an empty list; otherwise, it should return a valid linear ordering of the vertices such that for every directed edge from node A to node B, A appears before B in the sequence.

Context & Summary

Technical interview with a senior engineer, focusing on algorithms, data structures, OOPs, low-level design, and DBMS. Duration: 45-50 minutes.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.