This commit is contained in:
unintendedfraud
2023-12-30 17:38:30 +01:00
parent b58ea7165b
commit cfca463cdb
3 changed files with 33 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
[package]
name = "day12"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
util = { path = "../util" }
+6
View File
@@ -0,0 +1,6 @@
???.### 1,1,3
.??..??...?##. 1,1,3
?#?#?#?#?#?#?#? 1,3,1,6
????.#...#... 4,1,1
????.######..#####. 1,6,5
?###???????? 3,2,1
+18
View File
@@ -0,0 +1,18 @@
struct Line {
conditions: Vec<usize>,
record: Vec<char>,
}
fn main() {
let data = get_formatted_data(&util::get_data("data.txt"));
}
fn get_formatted_data(data: &Vec<String>) -> Vec<Line> {
let v = Vec::new();
for i in 0..data.len() {
let line = data[i];
}
return v;
}