ByteDance QA engineer interviews test automation frameworks, test strategy, CI integration, performance testing, and debugging complex multi-service systems.
No verified questions yet for ByteDance.
List<Integer> recommendVideos(int[][] graph, int startVideo) - returns a list of all videos reachable from startVideo.graph = [[1, 2], [3], [3], []], startVideo = 0[1, 2, 3]graph = [[1], [2], []], startVideo = 1[2]0 <= graph.length <= 1000 <= graph[i].length <= 100int[] videoIds representing the videos a user has viewed and an int maxLength which is the maximum length that the playlist can be.List<Integer> filterPlaylist(int[] videoIds, int maxLength) - returns a list of video IDs in the filtered playlist avoiding repetition.videoIds = [1, 2, 3, 1, 2, 3], maxLength = 4[1, 2, 3]videoIds = [5, 6, 5, 7, 8, 6], maxLength = 5[5, 6, 7, 8]0 <= videoIds.length <= 100001 <= maxLength <= 1000Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free