归档 2018年2月

[LeetCode]Swap Adjacent in LR String

题目描述:

LeetCode 777. Swap Adjacent in LR String

In a string composed of 'L', 'R', and 'X' characters, like "RXXLRXRXL", a move consists of either replacing one occurrence of "XL" with "LX", or replacing one occurrence of "RX" with "XR" ...

继续阅读

每日归档

上个月

下个月

归档