Longest substrings without repeating characters: Difference between revisions
Longest substrings without repeating characters (view source)
Revision as of 02:18, 12 July 2022
, 1 year ago→{{header|J}}
m (→{{header|J}}: more compact) |
m (→{{header|J}}) |
||
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}}==
|