Acko SDE-1 OA Questions and Solutions | Fraudulent Transaction Alerts & Server Dependency Network Bottleneck
Question · Posted Jun 2026
Problem 1 - Fraudulent Transaction Window Alerts Problem Statement Acko's risk engine analyzes a chronological log of user transactions. You are given an integer array transactions representing transaction amounts and an integer K representing the size of a sliding window. For every contiguous window of exactly K transactions, calculate the Risk Spread, defined as: Risk Spread = Maximum Transaction - Minimum Transaction Return an array containing the Risk Spread for every window of size K from left to right. Constraints ...
The full answer & interview discussion are available to premium members.
Log in Create a free account