Function advent_solutions::advent2017::day07::part1
[−]
[src]
pub fn part1<'a, 'b>(nodes: &'a [Node<'b>]) -> &'b str
Before you're ready to help them, you need to make sure your information is correct. What is the name of the bottom program?
let input = b"pbga (66) xhth (57) ebii (61) havc (66) ktlj (57) fwft (72) -> ktlj, cntj, xhth qoyq (66) padx (45) -> pbga, havc, qoyq tknk (41) -> ugml, padx, fwft jptl (61) ugml (68) -> gyxo, ebii, jptl gyxo (61) cntj (57) "; let graph = Node::list_from_bytes(input) .to_result() .unwrap(); assert_eq!(part1(&graph), "tknk");