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 <= 1000LoadTestOrchestrator that can schedule and execute load tests across multiple services. The orchestrator must manage test execution and gather metrics.class LoadTestOrchestrator:def __init__(self): - Initializes the orchestrator.def schedule_load_test(self, service_name: str, duration: int): - Schedules a load test for a given service.def execute_tests(self) -> None: - Executes all scheduled tests concurrently.def get_test_results(self) -> Dict[str, Any]: - Returns a dictionary of test results for each service.orchestrator = LoadTestOrchestrator(), orchestrator.schedule_load_test('serviceA', 60)execute_tests() the results can be accessed via get_test_results().1 <= service_name.length <= 1000 <= duration <= 3600FlakyTestDetector to help identify tests that fail intermittently and should be reviewed or fixed.class FlakyTestDetector:def __init__(self): - Initializes the detector.def report_test_result(self, test_id: str, success: bool): - Reports the result of a test execution.def get_flaky_tests(self) -> List[str]: - Returns a list of flaky test ids.detector = FlakyTestDetector(), detector.report_test_result('test1', True), detector.report_test_result('test1', False)detector.get_flaky_tests()['test1']1 <= test_id <= 100000Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free