Contribute OA questions
OAHelper
CompaniesProblemsTopicsInterview Experiences
Explore
G

Google

sde

Interview Date

10-08-2026

Result

Selected

Difficulty

Easy

Rounds

01

Drive Type

Off-Campus

Interview Date

10-08-2026

Result

Selected

Difficulty

Easy

Rounds

01

Drive Type

Off-Campus

Topics asked

dsa

Detailed experience

PART 1: ALGORITHMIC PROBLEM - LIMIT ORDER BOOK MATCHING ENGINEBASE PROBLEMYou are building the core execution engine for a cryptocurrency exchange. You need to implement a Limit Order Book (LOB) that matches buy and sell orders.Task: Design a class OrderBook that supports the following operations:placeOrder(orderId, side, price, size): Add a new buy or sell order.cancelOrder(orderId): Remove an existing order.execute(): Match compatible buy and sell orders (where the highest buy price is greater than or equal to the lowest sell price) based on price-time priority.What combination of data structures (such as balanced Binary Search Trees, Hash Maps, and Doubly Linked Lists) will you use to ensure that placing and canceling orders operates in strict O(1) or O(log N) time?FOLLOW-UP 1The exchange is experiencing massive spikes in order cancellations from high-frequency market makers. Standard cancelOrder operations require traversing the linked list at a specific price level to find the node, degrading performance to O(N) in worst-case scenarios. How do you redesign your internal Hash Map to store direct memory pointers (or iterators) to the list nodes, allowing strictly O(1) cancellations without traversal?FOLLOW-UP 2The matching engine is rewritten in C++ for maximum throughput. You notice that dynamically allocating and deallocating order nodes using standard OS system calls (new and delete) is causing severe memory fragmentation and cache misses. How would you implement a custom intrusive linked list and a pre-allocated slab allocator to ensure contiguous memory layout and maximize L1 CPU cache hit rates during order matching?PART 2: SYSTEM DESIGN - LOW-LATENCY TRADING GATEWAYBASE PROBLEMYou are designing the network gateway for a proprietary trading firm. The system must ingest raw UDP multicast market data from multiple exchanges, normalize it, pass it through a risk-check engine, and send TCP orders back to the exchange. The critical metric is "tick-to-trade" latency, which must remain under 10 microseconds. Design the high-level architecture for this software pipeline.FOLLOW-UP 1Standard Linux POSIX networking adds significant latency due to context switches between user space and kernel space, as well as interrupt handling. How do you re-architect the ingestion layer using kernel bypass technologies (such as DPDK or Solarflare OpenOnload) to allow your user-space application to poll the Network Interface Card (NIC) directly?FOLLOW-UP 2Before any algorithmic trade is fired to the exchange, it must pass a pre-trade risk check (e.g., ensuring the strategy isn't exceeding its capital limit or executing a runaway loop). Doing this synchronously blocks the execution thread. How do you design an asynchronous, lock-free ring buffer architecture where a dedicated risk thread continuously validates state without acquiring mutexes, ensuring the critical path remains unblocked?PART 3: AI / ML DISCUSSION QUESTIONSWhen modeling tabular financial or telemetry data, why is XGBoost often preferred over deep neural networks?XGBoost uses gradient-boosted decision trees, which intrinsically handle non-linear relationships and missing values without requiring extensive data normalization. In structured, tabular environments like financial metrics or system telemetry, XGBoost typically achieves faster convergence, higher accuracy out-of-the-box, and provides superior feature importance interpretability compared to deep learning architectures, which require massive datasets and careful regularization to avoid overfitting.How do you design an anomaly detection pipeline for real-time data streams?Real-time anomaly detection requires balancing accuracy with inference latency. The pipeline typically begins with a lightweight statistical or tree-based model (like Isolation Forests or an XGBoost probability model) operating on sliding windows of metadata. If this first-pass model flags a high probability of an anomaly, the raw data segment is dynamically routed to a more computationally expensive deep learning model (such as an Autoencoder implemented in PyTorch) for deep feature extraction and final classification.What are the key bottlenecks when deploying PyTorch models for edge inference?Standard PyTorch relies on a dynamic computation graph (eager execution) and the Python Global Interpreter Lock (GIL), both of which introduce significant overhead. At the edge, hardware constraints amplify these issues. Deployment requires exporting the model to a static representation (like TorchScript or ONNX) and utilizing optimized C++ inference runtimes (like TensorRT) to perform layer fusion, memory pre-allocation, and precision reduction (quantization) to maintain high throughput.What is the difference between Generative AI and Discriminative AI?Discriminative AI learns the boundaries between different classes of data. It models the conditional probability $P(Y\vert{}X)$ to classify inputs or predict values (e.g., predicting if a network packet is malicious or benign). Generative AI learns the underlying distribution of the data itself. It models the joint probability $P(X, Y)$ or $P(X)$, allowing it to generate entirely new, synthetic data samples that resemble the original training set (e.g., generating code, text, or synthetic market scenarios).

Posted on - 23 Sept 2026
Company OAsAll ProblemsTopicsCompany InsightsOA CalendarInterview ExperiencesPremium
OAHelper

Built by students, for students - practice company-specific OAs, DSA sheets, and real interview experiences to land your dream role.

© 2026 OAHelper.in·Terms·Privacy·Refunds·Trust & Safety·Contact·
Ready to crack your next OA?

Practice company-specific questions trusted by thousands of students across India.

Start PracticingGo Premium
OA Practice·DSA·Placements

Disclaimer: OAHelper is an independent educational platform. We (oahelper.in) do not own the images or questions shown. Content is uploaded by users.