Upstox SDE-1 OA 2024 | Top K Most Volatile Stocks & Order Matching Engine Parsing
Question · Posted Jun 2026
Problem 1 - Top K Most Volatile Stocks Problem Statement An algorithmic trading platform logs a continuous stream of stock execution events. You are given an array of strings events, where each string represents a stock ticker that participated in a trade. You must analyze every contiguous window of exactly W events. For each window, determine the K most active stock tickers. The ranking rules are: Higher frequency ranks first. If two tickers have the same frequency, the ticker whose ...
The full answer & interview discussion are available to premium members.
Log in Create a free account