← ALL NOTES
Two Pointers

838. Push Dominoes

Dominoes fall left ('L'), right ('R'), or stand ('.'); a falling domino pushes adjacent standing ones its way, and a standing domino caught between equal opposing forces stays up. Compute the final…

Loading…