-
The method USES prefix information, optimizes the shift distance, and does not need additional space complexity.
该方法利用前缀信息,实现了移动距离的最优,且不增加空间复杂度。
youdao
-
The method USES prefix information, optimizes the shift distance, and does not need additional space complexity.
该方法利用前缀信息,实现了移动距离的最优,且不增加空间复杂度。
youdao