Too much repetition.
i didn't understand why we ceil the result , why can't we just floor it
Oh sorry, next time I will do it :D
Please use spoiler flag next time. Otherwise your post is visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
This should be solve with O(1) and it is not 5kyu consider the complex Math you have to make here.
6666
膜拜大佬。。。
from this solution i discovered the Stack data structure brilliant and simple ;)
Why is the "Math.ceil()" method used here?
indeed. it fails to respect the previous constraints for following characters in the chain when correcting cIndex with pIndex.
The Math.ceil() function in JavaScript is used to round the number passed as parameter to its nearest integer in Upward direction of rounding i.e towards the greater value.
if r=15,return undefined
Loading collection data...
Too much repetition.
i didn't understand why we ceil the result , why can't we just floor it
Oh sorry,
next time I will do it :D
Please use spoiler flag next time. Otherwise your post is visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
This should be solve with O(1) and it is not 5kyu consider the complex Math you have to make here.
This comment is hidden because it contains spoiler information about the solution
6666
膜拜大佬。。。
from this solution i discovered the Stack data structure brilliant and simple ;)
Why is the "Math.ceil()" method used here?
This comment is hidden because it contains spoiler information about the solution
indeed. it fails to respect the previous constraints for following characters in the chain when correcting cIndex with pIndex.
The Math.ceil() function in JavaScript is used to round the number passed as parameter to its nearest integer in Upward direction of rounding i.e towards the greater value.
if r=15,return undefined
Loading more items...