← All problemsSign in

Cross

You have been given a board. It has $n$ rows and $m$ columns. Some spaces on this board are empty, and others are filled with squares. Squares are marked by a "$\ast$" and empty spaces by a "$\cdot$". Your goal, is to check if there is a cross in the board. A cross is formed by an intersecting row and column, both composed entirely of squares (the intersection **does not** have to be centered li

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start