Rippling QA engineer interviews test automation frameworks, test strategy, CI integration, performance testing, and debugging complex multi-service systems.
class FlakyTestDetector:def __init__(self): Initializes the detector object.def add_result(self, test_id: str, result: bool) -> None: Records the result of a test.def is_flaky(self, test_id: str) -> bool: Determines if a specific test is flaky based on its results.detector = FlakyTestDetector(); detector.add_result('testA', True); detector.add_result('testA', False); detector.is_flaky('testA')True1 <= test_id <= 100001000 results can be recorded for each test.class LRUCache:def __init__(self, capacity: int): Initializes the LRU Cache with a specified capacity.def get(self, key: int) -> int: Returns the value for the specified key, or -1 if not found.def put(self, key: int, value: int) -> None: Updates or inserts the value for the specified key.cache = LRUCache(2); cache.put(1, 1); cache.put(2, 2); cache.get(1)11 <= capacity <= 30000 <= key, value <= 10^4.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free