Longest substrings without repeating characters: Difference between revisions

m
m (→‎{{header|J}}: more compact)
Line 670:
longnorep 'Thequickbrownfoxjumpsoverthelazydog'
Thequickbrownf</lang>
 
This also works on sequences of numbers (though the character representation of the sequences of numbers may contain repeated characters, the represented numbers will not contain repetitions):
 
<lang J> longnorep 1 2 3 4 1 2 5 6 1 7 8 1 0
3 4 1 2 5 6
2 5 6 1 7 8</lang>
 
=={{header|jq}}==
6,951

edits