Skip to content

Instantly share code, notes, and snippets.

Vladislav Isenbaev winger

Block or report user

Report or block winger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.