Timeline for Finding sequences of 0's in a 2D binary grid
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2021 at 11:30 | comment | added | Vid | Your algorithm only works for the one example I provided, but with a few modifications it does work for all of my test cases as well. | |
Dec 29, 2021 at 10:15 | comment | added | Ashish gupta | in your example this algo works fine | |
Dec 29, 2021 at 10:11 | history | edited | Ashish gupta | CC BY-SA 4.0 |
added 55 characters in body
|
Dec 29, 2021 at 10:09 | comment | added | Ashish gupta | count only when you go from 0->1 not 1->0. | |
Dec 28, 2021 at 19:42 | comment | added | Vid | Unless I'm missing something this only works for a few problems. Here's an example of an incorrect solution with this algorithm: i.imgur.com/hb5a9Zc.jpg Red is correct solution (5), blue is your algorithm. | |
Dec 28, 2021 at 18:19 | history | answered | Ashish gupta | CC BY-SA 4.0 |