โ† ServiceNow questions

Find sine wave shaped 1s in a matrix

Filed under ServiceNow

Given a 10x30 matrix filled with 0s and 1s, write a program to determine if there is a contiguous path of 1s shaped like a sine wave starting from the bottom-left corner.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related ServiceNow questions

Collected from public candidate posts and coding forums. Updated Nov 2026.