I tried hard at getting the result. But couldn’t passed the test cases, though it passes the sample test case. Please look into it.
Thank You.
Robot Collect Point
u can refer to this code
the main algo was
- for each 5 row ( 0,4) ( 1,5) (2,6)…
convert all 1s to 0
now call on from 2th column for each 5 rows and calculate the max coins that can be collected
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.