SAP Labs | OA | Correct Domino Sequence

Question · Posted Apr 2026

Correct Domino Sequence Problem Statement: A domino is a rectangular tile divided into two square parts. There are between 1 and 6 dots on each of the parts. There is an array A of length 2*N, representing N dominoes. Dominoes are arranged in a line in the order in which they appear in array A. The number of dots on the left and the right parts of the K-th domino are A[2*K] and A[2*K+1], respectively. For example, an array A ...

The full answer & interview discussion are available to premium members.

Log in Create a free account