part1

Function part1 

Source
pub fn part1(input: &[usize]) -> usize
Expand description

Recursively follow parent relationships all the way to the root COM object. Cache each object’s depth in order to avoid unnecessary work.