Jump to content

Longest substrings without repeating characters: Difference between revisions

Line 605:
local fn substrings( t as CFStringRef )
int beg, c, f, rpt, max = 0
for beg = 0 to len(t)// - 1
rpt = instr( beg+1, t, mid(t, beg, 1), NSCaseInsensitiveSearch )
if rpt < 0 then rpt = len(t)
68

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.