Skip to content

Instantly share code, notes, and snippets.

View johngaitho05's full-sized avatar
🏠
Working from home

John Gaitho johngaitho05

🏠
Working from home
View GitHub Profile
def find_longest_path(s):
i = j = 0
tabs = 0
paths = []
while j < len(s):
if s[j] == '\n':
if '.' in s[i:j]:
index = i - (tabs + 1)
paths.append(find_path(s, index, tabs, j-i))
if s[j] == '\t':