Longest substrings without repeating characters: Difference between revisions
Content added Content deleted
(J) |
m (→{{header|J}}: more compact) |
||
Line 647: | Line 647: | ||
while. ss=. c ]\ y do. |
while. ss=. c ]\ y do. |
||
cnt=. #@~."1 ss |
cnt=. #@~."1 ss |
||
if. c e. cnt do. |
if. c e. cnt do. ~.ss#~ c=cnt return. end. |
||
~.ss#~ c=cnt return. |
|||
end. |
|||
c=. c-1 |
c=. c-1 |
||
end. |
end. |