Determine if a string has all unique characters: Difference between revisions
Content added Content deleted
m (→{{header|JavaScript}}: Update to preamble of draft – folding a string down to a dictionary of indices) |
|||
Line 1,141:
def duplicatedCharIndices(s):
'''Just the first duplicated character, and
the
'''
def go(xs):
Line 1,298:
def duplicatedCharIndices(s):
'''Just the first duplicated character, and
the
'''
def go(dct, ic):
|