ByteDance SDE OA 2025 | Viral Trend Analyzer & Optimal Video Encoding Schedule
ByteDance · Question · Posted Jun 2026
Problem 1 - Viral Trend Analyzer Problem Statement TikTok's analytics engine tracks the number of new viewers arriving every second. You are given an array views where views[i] represents the number of viewers gained during the i-th second. For every contiguous window of size K, find the maximum viewer count. Return an array containing the maximum value from every sliding window. Constraints Constraint 1 ≤ N ≤ 100000 1 ≤ K ≤ 100000 Example Input Output views = [1,3,-1,-3,5,3,6,7] K ...
The full answer & interview discussion are available to premium members.
Log in Create a free account