Click here to see the full article post
Alex Wice
@awice
Posts made by awice

RE: K Empty Slots
@alexandr2017
After 1st day:_ _ X _ _ _ _ _ _ _
After 2nd day:_ _ X _ _ _ _ _ X _
...
After 5th day:X X X _ _ _ _ X X _
After 6th day:X X X _ _ X _ X X _
, satisfies the condition (theres K=1 unbloomed between bloomed at positions 6, 8) 
RE: Preimage Size of Factorial Zeroes Function
@jun1013 We can establish 5K+1, or even better bounds  it doesn't matter that much for our binary search.

RE: 789. Escape The Ghosts Bug in test case 40?
@LaurenceUsas Can I see the solution or you can PM it to me?

RE: Number of Subarrays with Bounded Maximum
@henrya2 Let's say I'm trying to find the number of subarrays in an array of size 4. Here they are, represented as
[leftboundary, rightboundary]
.[0, 0] [0, 1], [1, 1] [0, 2], [1, 2], [2, 2] [0, 3], [1, 3], [2, 3], [3, 3]
So at each step,
cur
represents how many valid leftboundaries at or before where I am. Thenans += cur
to add the number of subarrays with rightboundary ending here.