R/day09.R

Defines functions day09_part1_solution day09_part2_solution

Documented in day09_part1_solution day09_part2_solution

#' Day 09 part 1 solution
#'
#' @export
day09_part1_solution <- function() {
  input_buffer <- c(1)
  input_array  <- aoc19::DATASET$day09

  res <- day05_run_computer(input_buffer, input_array)
  res$buffer
}

#' Day 09 part 2 solution
#'
#' @export
day09_part2_solution <- function() {
  input_buffer <- c(2)
  input_array  <- aoc19::DATASET$day09

  res <- day05_run_computer(input_buffer, input_array)
  res$buffer
}
EvgenyPetrovsky/aoc2019 documentation built on Jan. 9, 2020, 2:40 a.m.