Skip to content

Instantly share code, notes, and snippets.

View jhoodsmith's full-sized avatar

James Hood-Smith jhoodsmith

View GitHub Profile
@jhoodsmith
jhoodsmith / coding_question.py
Last active February 11, 2021 11:04
Fregnan Interview Technical Test: Question 1 Materials
def children(node):
return {
'A': list('B'),
'B': list('DFEC'),
'C': list('E'),
'D': list('F'),
'E': [],
'F': list('G'),
'G': [],
}[node]