Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Substring(S):
  2. last = ""
  3. array = []
  4.  
  5. if(head(S).empty())
  6. ret array;
  7.  
  8. if(last.empty())
  9. last = head(S)
  10.  
  11. else if(last == head(S))
  12. last = last +head(S)
  13. else if(lsat != head(S))
  14. array.append(last)
  15. last = ""
  16.  
  17. Substring(S)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement