InterviewDB Question

Failing Test Pair - Find First Conflicting Test Case

Question Details

Problem You are given a list of test results, each as a tuple (input_val, expected_output, actual_output). A test "fails" when expected_output != actual_output. A "failing pair" is defined as two consecutive tests (by index) where both fail AND they…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone