Problem 61025. The Case of the Missing Prototype – Check for Overlapping Alibis Between Suspects to Spot Inconsistencies

Each suspect in the case has provided an alibi — a time interval [start end] representing when they claim to have been elsewhere.You’ve compiled all alibis into a matrix A, where each row represents one suspect’s start and end time.
Your task is to determine if any two suspects’ alibis overlap in time.
If even one pair overlaps, return true; otherwise, return false.
Detective Alex Verma suspects someone’s story doesn’t line up — and this function will prove it!

Solution Stats

50.0% Correct | 50.0% Incorrect
Last Solution submitted on Oct 22, 2025

Solution Comments

Show comments

Problem Recent Solvers6

Suggested Problems

More from this Author22

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!