Skip to content

Instantly share code, notes, and snippets.

Vladislav Isenbaev winger

View GitHub Profile
View "cargo export" output for cargo
root = "cargo"
dependencies = []
path = "/Users/winger/.cargo/registry/src/"
version = "0.1.1"
s = input()
prevs = dict()
a = []
for i in range(len(s)):
if s[i] in prevs:
a.append(i - prevs[s[i]])
a.append(i + 1)
prevs[s[i]] = i
You can’t perform that action at this time.