SHARE
TWEET

Untitled

a guest Jun 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. M := C := ST.root
  2.  
  3. for i := 1..|T| do
  4.   while C.canNotExtendWith(T[i]) do
  5.     C := C.contract()
  6.  
  7.   C := C.extendWith(T[i])
  8.  
  9.   if C.length > M.length then
  10.     M := C
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top