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

80 Solutions

57 Solvers

Last Solution submitted on Jan 30, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...