481. Magical String
481. Magical String
Description

Solution
Use a pointer to record current occurrence of next segment of s. The new added segment’s consecutive number should be different from back of s.
Code
1 | class Solution: |

All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
