Created
December 11, 2021 16:42
-
-
Save sherjilozair/eff1d77248cd9b7b810f85101ad580da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace all -1 with 0 | |
for i in 0..input.len() { | |
for j in 0..input[i].len() { | |
if input[i][j] == -1 { | |
input[i][j] = 0; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment