Longest substrings without repeating characters: Difference between revisions

Content added Content deleted
(→‎BQN: add)
Line 372: Line 372:
Original string: ''
Original string: ''
Longest substrings: <empty></pre>
Longest substrings: <empty></pre>

=={{header|BQN}}==
<syntaxhighlight lang="bqn">LongUniq ← ⌈´⊸=∘(≠¨)⊸/ ∧`∘∊⊸/¨∘↓

LongUniq¨ "a"‿""‿"zzz"‿"xyzyab"‿"xyzyabcybdfd"</syntaxhighlight>
{{out}}
<pre>┌─
· ⟨ "a" ⟩ ⟨ ⟨⟩ ⟩ ⟨ "z" "z" "z" ⟩ ⟨ "zyab" ⟩ ⟨ "zyabc" "cybdf" ⟩
┘</pre>


=={{header|C}}==
=={{header|C}}==