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.
I understood the problem by just looking at the equation with out reading single line of explanation.. read the explanation only to know about input/output formats and data range.. So I thought, you don't need to use "what the !@#$! kind of an explanation" kind of expression.. instead of asking for more explanation nicely.
and what kind of question is this?
And what happens when the window hits the right margin? Does i stop at n-d?
valid range is already specified clealry i<= j< i+d. and its obvious that i and j shall always be < n, otherwise program crash!!! so you would just use generic (j
trick/fun here is how to reuse the previous window calculation to avoid time out failures.
take care and have fun.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Queries with Fixed Length
You are viewing a single comment's thread. Return to all comments →
I understood the problem by just looking at the equation with out reading single line of explanation.. read the explanation only to know about input/output formats and data range.. So I thought, you don't need to use "what the !@#$! kind of an explanation" kind of expression.. instead of asking for more explanation nicely. and what kind of question is this? And what happens when the window hits the right margin? Does i stop at n-d? valid range is already specified clealry i<= j< i+d. and its obvious that i and j shall always be < n, otherwise program crash!!! so you would just use generic (j
trick/fun here is how to reuse the previous window calculation to avoid time out failures.
take care and have fun.