repl.it
@haideralsh/

Advent of Code 2018 problems 1

Rust

No description

fork
loading
Files
  • main.rs
  • 1.data
  • lib.rs
main.rs
1
2
3
4
5
6
7
8
9
mod lib;
use lib::{read_file, count_sum_frequency};

fn main() {
  let sum = count_sum_frequency(read_file("1.data"));
  println!("{}", sum);
}