Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- M := C := ST.root
- for i := 1..|T| do
- while C.canNotExtendWith(T[i]) do
- C := C.contract()
- C := C.extendWith(T[i])
- if C.length > M.length then
- M := C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement