A line of `n` dominoes stands upright. At the start some are pushed left (`"L"`), some are pushed right (`"R"`) and the rest are untouched (`"."`). Every second, each falling domino pushes its neighbour in the direction it is falling. A standing domino pushed from both sides at the same time stays upright, and a falling domino adds no extra force to one that is already falling. Return the final state of the line as a string.
A line of n dominoes stands upright. At the start some are pushed left ("L"), some are pushed right ("R") and the rest are untouched ("."). Every second, each falling domino pushes its neighbour in the direction it is falling. A standing domino pushed from both sides at the same time stays upright, and a falling domino adds no extra force to one that is already falling. Return the final state of the line as a string.
Pad the line with a virtual L wall on the left and a virtual R wall on the right. They lean away from the line, so they never push anything, but they give every gap a pushed domino on both sides.