Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Substring(S):
- last = ""
- array = []
- if(head(S).empty())
- ret array;
- if(last.empty())
- last = head(S)
- else if(last == head(S))
- last = last +head(S)
- else if(lsat != head(S))
- array.append(last)
- last = ""
- Substring(S)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement