code: https://ide.codingblocks.com/s/461116
problem: https://hack.codingblocks.com/app/contests/2142/133/problem
it is giving tle for large input I have heard for such cases you can directly use formula for oeis but I don’t know how
code: https://ide.codingblocks.com/s/461116
problem: https://hack.codingblocks.com/app/contests/2142/133/problem
it is giving tle for large input I have heard for such cases you can directly use formula for oeis but I don’t know how
hello @raghav007
pass ur board array by reference in all the function, it will save the extra copying time.
and then try to submit
it is not passing one test cases
…
use bitset to make it more efficient.
refer this->
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.