Skip to contents
-
a_to_b()
- Map between mappings
-
aoc_solutions
- Advent of Code 2023 solutions
-
by_df()
- Wrapper for
by that returns a data frame
-
cards_strength()
- Calculate the strength of individual cards, see
day 7 - 2023
-
f01a() f01b() example_data_01()
- Day 01: Trebuchet?!
-
f02a() f02b() example_data_02()
- Day 02: Cube Conundrum
-
f03a() f03b() example_data_03()
- Day 03: Gear Ratios
-
f04a() f04b() example_data_04()
- Day 04: Scratchcards
-
f05a() f05b() example_data_05()
- Day 05: If You Give A Seed A Fertilizer
-
f06a() f06b() example_data_06()
- Day 06: Wait For It
-
f07a() f07b() example_data_07()
- Day 07: Camel Cards
-
f08a() f08b() example_data_08()
- Day 08: Haunted Wasteland
-
f09a() f09b() example_data_09()
- Day 09: Mirage Maintenance
-
f10a() f10b() example_data_10()
- Day 10: Pipe Maze
-
f11a() f11b() example_data_11()
- Day 11: Cosmic Expansion
-
f13a() f13b() example_data_13()
- Day 13: Point of Incidence
-
f14a() f14b() example_data_14()
- Day 14: Parabolic Reflector Dish
-
f15a() f15b() example_data_15()
- Day 15: Lens Library
-
extrapolate_values()
- Extrapolate values from sequence, see
day 9 - 2023
-
f01_helper()
- Combines two vectors with digits and returns the sum
-
find_label_lens()
- Find label-lens in box, see
day 15 - 2023
-
find_mid_point_reflection()
- Find mid point for the reflection, see
day 13 - 2023
-
find_min_location()
- Find minimum locations for seed ranges
-
find_minimum_set()
- Find the minimum set of cubes for a game, see
day 2 - 2023
-
first_true_element()
- Get the first
TRUE consecutive element from reference point
-
focus_power()
- Focus lens power, see
day 15 - 2023
-
get_adjacent_elements()
- Get adjacent elements from a 2D object
-
get_adjacent_elements_row()
- Get adjacent numeric elements from a 2D object in the same row
-
get_hash()
- Get hash, see
day 15 - 2023
-
get_indices()
- Get adjacent indices
-
get_key()
- Get hashing key from matrix elements
-
get_mapping()
- Get mapping for string, see
day 15 - 2023
-
get_next_tiles()
- Get next field tiles, see
day 10 - 2023
-
`%gcd%`
- Greatest Common Divisor (GCD)
-
hand_strength()
- Calculate the strength of a group of cards / a hand, see
day 7 - 2023
-
hashkeys()
- Get all hashkeys of a hash table
-
ind2sub()
- Convert a linear subscript to matrix subscripts
-
lapply_df()
- Wrapper for
lapply that returns a data frame
-
last_true_element()
- Get the last
TRUE consecutive element from reference point
-
lcm()
- Least Common Multiple (LCM)
-
lookup_digit()
- Lookup digits in a string
-
map_boxes()
- Map sequence of boxes , see
day 15 - 2023
-
map_schematic()
- Map schematic to extract numeric values adjacent to symbol, see
day 3 - 2023
-
map_schematic_gears()
- Map schematic to extract numeric values adjacent to the gear symbol,
*,
see day 3 - 2023
-
navigate_pipe()
- Navigate field of pipes, see
day 10 - 2023
-
new_box()
- Create new box, see
day 15 - 2023
-
parse_cubes()
- Parse string with game details, see
day 2 - 2023
-
parse_game()
- Parse string with game details, see
day 2 - 2023
-
parse_map()
- Parse mapping from Almanac
-
parse_network()
- Parse network map, see
day 8 - 2023
-
parse_numbers()
- Parse numbers from text section
-
parse_patterns()
- Parse patterns, see
day 13 - 2023
-
parse_schematic()
- Parse schematic string, see
day 3 - 2023
-
parse_seed_ranges()
- Parse seed ranges from Almanac
-
parse_seeds()
- Parse seeds from Almanac
-
remove_label_lens()
- Remove label-lens from box, see
day 15 - 2023
-
replace_chrs()
- Replace characters
-
replace_label_lens()
- Replace label-lens from box, see
day 15 - 2023
-
rev_str()
- Reverse string
-
reverse_string()
- Reverse a string
-
rotate()
- Rotate 2D array 90 deg clockwise
-
rotate_rev()
- Rotate 2D array 90 deg anti-clockwise
-
shoelace()
- Shoelace formula
-
split_deck()
- Split string with hands of cards, see
day 7 - 2023
-
split_hand()
- Split string with cards, see
day 7 - 2023
-
sub2ind()
- Convert matrix subscripts to a linear subscript
-
tilt_cycle()
- Tilting cycle, see
day 14 - 2023
-
tilt_platform()
- Tilt platform, see
day 14 - 2023
-
total_load()
- Calculate total load, see
day 14 - 2023
-
traverse_map()
- Traverse network map, see
day 8 - 2023
-
validate_connections()
- Validate pipe connections, see
day 10 - 2023
-
validate_hands()
- Validate hand based on game configuration, see
day 2 - 2023
-
winning_options()
- Compute winning options