day10 part 2.
This commit is contained in:
		
							parent
							
								
									711dbb63d2
								
							
						
					
					
						commit
						79657a2f91
					
				
					 8 changed files with 348 additions and 23 deletions
				
			
		| 
						 | 
				
			
			@ -7,8 +7,8 @@ fn main() {
 | 
			
		|||
    let structured_input = parse::parse(input);
 | 
			
		||||
 | 
			
		||||
    println!("Part One");
 | 
			
		||||
    println!("Result: {}", part1::part1());
 | 
			
		||||
    println!("Result: {}", part1::part1(&structured_input));
 | 
			
		||||
 | 
			
		||||
    println!("Part Two");
 | 
			
		||||
    println!("Result: {}", part2::part2());
 | 
			
		||||
    println!("Result: {}", part2::part2(&structured_input));
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,6 @@
 | 
			
		|||
pub fn parse(input: &str) -> usize {
 | 
			
		||||
pub type StructuredInput = usize;
 | 
			
		||||
 | 
			
		||||
pub fn parse(input: &str) -> StructuredInput {
 | 
			
		||||
    unimplemented!()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,6 @@
 | 
			
		|||
use crate::parse::*
 | 
			
		||||
pub fn part1() -> usize {
 | 
			
		||||
use crate::parse::*;
 | 
			
		||||
 | 
			
		||||
pub fn part1(input: &StructuredInput) -> usize {
 | 
			
		||||
    unimplemented!()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
use crate::parse::*
 | 
			
		||||
use crate::parse::*;
 | 
			
		||||
 | 
			
		||||
pub fn part2() -> usize {
 | 
			
		||||
pub fn part2(input: &StructuredInput) -> usize {
 | 
			
		||||
    unimplemented!()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue