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
|
231 Discussions
|
Please Login in order to post a comment
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
Here is my DP solution (C# code). Take a look:
I can't figure out how to fix this code. It only works for 2 tests. For the ones it fails it's usually just one more move than expected