โ† Intel questions

Replace 0s with 1s in a Row

Filed under Intel

The question

Given a 2D array of 1s and 0s, write a function to replace all 0s in a row with 1s if that row contains at least one 1.

No write-up yet. Related questions below have one.

Related Intel questions

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