Skip to content

Instantly share code, notes, and snippets.

View wintermonster's full-sized avatar

Nikhil Ahuja wintermonster

View GitHub Profile
@wintermonster
wintermonster / races.py
Created December 9, 2022 04:12
Solution to the cycling problem
list_of_races = [[('c','d'), ('a','b'),('b','c')],
[('C', 'B'), ('D', 'C'), ('B', 'E'), ('A', 'D')]]
for races in list_of_races:
print(races)
races = dict(races)
start_city = (set(races.keys()) - set(races.values())).pop()
end_city = (set(races.values()) - set(races.keys())).pop()
all_cities = list(set(races.keys()).union(set(races.values())))
activate="E:\_virtual_envs\$*\Scripts\activate"
listenvs=ls 'E:\_virtual_envs'
virtualenv=virtualenv "E:\_virtual_envs\$*"