Completed day 10. Not wildly happy with my runtime
This commit is contained in:
		| @@ -16,13 +16,13 @@ mod tests { | ||||
| 1 3 6 10 15 21 | ||||
| 10 13 16 21 30 45"; | ||||
|         assert_eq!(part1(test_input), "114".to_string()); | ||||
|         panic!(); | ||||
|     } | ||||
|  | ||||
|     #[test] | ||||
|     fn test_part2() { | ||||
|         let test_input = ""; | ||||
|         assert_eq!(part2(test_input), "".to_string()); | ||||
|         assert_eq!(part2("0 3 6 9 12 15"), "-3".to_string()); | ||||
|         assert_eq!(part2("1 3 6 10 15 21"), "0".to_string()); | ||||
|         assert_eq!(part2("10 13 16 21 30 45"), "5".to_string()); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Connor Johnstone
					Connor Johnstone