We are building a DDoS mitigation filter monitoring billions of network packets per minute. We need to count the frequency of each source IP address in real-time to detect anomalous spikes. Using a standard hash map of counters would require tens ...Read more
Home/abderahman/Questions
RTSALL Latest Questions
In our telemetry service, financial tick prices arrive at ~10,000 events/second. We need an online algorithm that can output the exact running median at any moment. Sorting the buffer on every tick is O(N log N), which is impossible at high ...Read more
I understand how to solve the Largest Rectangle in Histogram in O(N^2) by expanding left and right from every bar. But top interviewers and competitive programming platforms always expect the O(N) single-pass Monotonic Stack solution. Every explanation I read online just ...Read more