We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Data Structures
- Queues
- Down to Zero II
- Discussions
Down to Zero II
Down to Zero II
Sort by
recency
|
233 Discussions
|
Please Login in order to post a comment
def downToZero(n): if n == 0: return 0 queue = deque([(n, 0)]) visited = set([n])
include
include
include
include
include
include
include
using namespace std;
int testCase(int n) { if (n == 0) { return 0; }
}
int main() { int q; cin >> q;
}
how is editorial code working q =10^5 n =10^6
for each query we are doing memset so q*n then how is it working or is there anything that i am missing here
TESTCASES ARE WRONG. DONT BE SURPRISED. e.g: for 86 expected output is 7. but my output was 8: 86->43->42->7->6->3->2->1->0.!
js