Construct a word ladder

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @ varchar(max)='Thomas Clausen Codegolf Script'

,@b bit=0,@s INT=0SET @+='Å'WHILE'Å'>@
SELECT @b+=len(left(@,1))-1,@=stuff(@,1,1,'')+
iif(left(@,@b)='','','
'+space(@s))+trim(left(@,1))
,@s+=len(left(@,1-@b))
PRINT stuff(@,1,1,'')

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results