but I is clever too \:\)



Your solution passed all tests

KiXtart
KiXtart Version = 4.53
KiXGolf Script = kixgolf_A2Z.kix

Computer
OS = Windows 2000 Professional
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 504 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = A-to-Z
Processing Start = 2007/09/14 10:14:45.875
Processing End = 2007/09/14 10:14:45.906
Duration = 0000/00/00 00:00:00.031
KiXGolf Score = 210

Thank you for participating in KiXtart Golf!


 Code:
function a($b,$c)
    dim $,$d,$e
    $a=0
    for each $ in $b
        dim $f
        for each $d in $b
            if $<$d
                for $e=-($|) to -2
                    if right($,-$e)=left($d,-$e)
                        $=$+' '+$d
                        $f=$f-$e+1
                    else
                        if $=join($c,left(right($,~),~))&($|)-$f<$a|~$a
                            $a=''+(($|)-$f)+' '+$
endfunction
_________________________