Problem 61038. The MATLAB Treasure Hunt – Escape the Labyrinth of Logic by Unlocking the Correct Door Sequence

You enter the Labyrinth of Logic, where each door opens only if a secret rule is met.
A vector of integers represents door codes.
A door opens only if its code is even and greater than 10, or odd and divisible by 5.
Given a vector codes, return a logical vector open of the same size, where true means the door opens.

Solution Stats

87.5% Correct | 12.5% Incorrect
Last Solution submitted on Oct 23, 2025

Solution Comments

Show comments