Using the solver for the part 1 form the second problem
This commit is contained in:
		
					parent
					
						
							
								5aa28c2b07
							
						
					
				
			
			
				commit
				
					
						07b0bf7558
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1,10 +1,10 @@ | ||||||
| use advent_of_code::prob1; | use advent_of_code::{prob1, prob2}; | ||||||
| 
 | 
 | ||||||
| fn main() { | fn main() { | ||||||
|     let args: Vec<String> = std::env::args().collect(); |     let args: Vec<String> = std::env::args().collect(); | ||||||
|     let file_path = args |     let file_path = args | ||||||
|         .get(1) |         .get(1) | ||||||
|         .expect("Please provide an argument on command-line."); |         .expect("Please provide an argument on command-line."); | ||||||
|     let max = prob1::solve_part2(file_path); |     let max = prob2::solve_part1(file_path); | ||||||
|     println!("{max}"); |     println!("{max}"); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue