Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/connorslade/advent-of-code
/ functions
Functions
628 in github.com/connorslade/advent-of-code
⨍
Functions
628
◇
Types & classes
143
↓ 1 callers
Function
solve_b
Convert the map into a graph and collapse it to find the longest path for part B
aoc_2023/src/day_23.rs:47
↓ 1 callers
Function
solve_b
(rules: &HashMap<&str, Vec<Rule>>, mut range: [(u32, u32); 4], map: &str)
aoc_2023/src/day_19.rs:59
↓ 1 callers
Function
solve_dirpad
( memo: &mut HashMap<(Vec<Button>, u8), u64>, sequence: Vec<Button>, depth: u8, )
aoc_2024/src/day_21.rs:67
↓ 1 callers
Method
sort_pages
(&self, idx: usize)
aoc_2024/src/day_05.rs:70
↓ 1 callers
Method
spin
(&mut self)
aoc_2023/src/day_14.rs:77
↓ 1 callers
Function
split_digits
Given an integer, this function will return None if it has an odd number of base 10 digits, otherwise the first half and second half of the digits wil
aoc_2024/src/day_11.rs:51
↓ 1 callers
Method
start_contains
(&self, value: u32)
aoc_2023/src/day_05.rs:95
↓ 1 callers
Method
state
(&self)
aoc_2022/src/day_17.rs:114
↓ 1 callers
Function
submit
(session: &Session, cmd: &SubmitArgs, args: &Args)
scaffold/src/commands/submit.rs:15
↓ 1 callers
Function
submit_answer
(session: &Session, cmd: &SubmitArgs, args: &Args, answer: &str)
scaffold/src/commands/submit.rs:75
↓ 1 callers
Method
tick
(&mut self)
aoc_2021/src/day_11.rs:37
↓ 1 callers
Method
tick
(&mut self, part_b: bool)
aoc_2024/src/day_15.rs:94
↓ 1 callers
Function
tick_octopi
(octopi: &mut Vec<Vec<Octopus>>, x: usize, y: usize)
aoc_2021/src/day_11.rs:74
↓ 1 callers
Function
timer
(cmd: &TimerArgs)
scaffold/src/commands/timer.rs:15
↓ 1 callers
Function
token
(session: &Option<Session>, cmd: &TokenArgs, args: &Args)
scaffold/src/commands/token.rs:10
↓ 1 callers
Function
tokenisze
(raw: &str)
aoc_2022/src/day_13.rs:68
↓ 1 callers
Method
tokenize
(mut self)
scaffold/src/formatter.rs:117
↓ 1 callers
Method
tokenize_format
(&mut self)
scaffold/src/formatter.rs:148
↓ 1 callers
Method
tokenize_literal
(&mut self)
scaffold/src/formatter.rs:130
↓ 1 callers
Method
total_distance
(&self)
aoc_2024/src/day_14.rs:64
↓ 1 callers
Method
trailheads
Find the coordinates of all 0s
aoc_2024/src/day_10.rs:35
↓ 1 callers
Function
turn
(facing: Direction, tile: char)
aoc_2023/src/day_10.rs:157
↓ 1 callers
Method
turn
(&self, dir: &Direction)
aoc_2022/src/day_22.rs:176
↓ 1 callers
Function
verify
(session: &Session, address: &Url)
scaffold/src/commands/verify.rs:7
↓ 1 callers
Method
verify
(&self, address: &Url)
scaffold/src/session.rs:35
↓ 1 callers
Method
vertical_reflection
(&self, error: usize)
aoc_2023/src/day_13.rs:66
↓ 1 callers
Method
ways
Here we just sum up the number of ways each towel can be made.
aoc_2024/src/day_19.rs:41
↓ 1 callers
Method
ways_to_win
(&self)
aoc_2023/src/day_06.rs:56
↓ 1 callers
Function
write_input
(cmd: &InitArgs, input: ProblemInput, formats: &[(&str, String)])
scaffold/src/commands/init.rs:95
↓ 1 callers
Function
write_scaffold
(cmd: &InitArgs, formats: &[(&str, String)])
scaffold/src/commands/init.rs:54
Method
advance
(&self, pos: Vec2<T>)
aoc_lib/src/direction/cardinal.rs:43
Method
check
(data: Vec<Board>)
aoc_2021/src/day_04.rs:140
Method
contains
(&self, pos: Vec2<K>)
aoc_lib/src/matrix.rs:40
Function
current_year
()
src/args.rs:58
Function
current_year
()
scaffold/src/misc.rs:18
Method
debug
(&self)
aoc_2024/src/day_14.rs:73
Method
debug
(&self, proc: &Processor, (combo, literal): (Option<Argument>, u64))
aoc_2024/src/day_17.rs:185
Function
decode
(s: &str)
aoc_2022/src/day_25.rs:15
Function
default_insertion
()
scaffold/src/commands/init.rs:149
Method
eq
(&self, other: &Self)
aoc_lib/src/matrix.rs:133
Method
first_word
(s: &str)
aoc_2022/src/day_19.rs:130
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
aoc_2024/src/day_17.rs:89
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
common/src/answer.rs:12
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
common/src/part.rs:25
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
aoc_lib/src/matrix.rs:148
Method
from
(s: String)
common/src/answer.rs:23
Method
from_char
(c: char)
aoc_2023/src/day_16.rs:99
Method
from_char
(input: char)
aoc_2022/src/day_24.rs:217
Method
from_env
()
scaffold/src/session.rs:23
Method
from_index
(i: usize)
aoc_2022/src/day_02.rs:70
Method
from_index
(i: usize)
aoc_2022/src/day_22.rs:157
Function
from_line
Direction, count
aoc_2022/src/day_09.rs:46
Method
from_program
(code: u64)
aoc_2024/src/day_17.rs:151
Method
from_str
(s: &str)
common/src/part.rs:15
Method
from_str
`{location}:{marker}:{template}`
scaffold/src/args.rs:147
Method
from_str
(s: &str)
aoc_2022/src/day_02.rs:61
Method
get_mut
(&mut self, pos: Vec2<usize>)
aoc_lib/src/matrix.rs:62
Method
hash
(&self, state: &mut H)
aoc_lib/src/matrix.rs:141
Method
index
(unit: char)
aoc_2021/src/day_14.rs:28
Method
index
(&self, index: [usize; 2])
aoc_lib/src/matrix.rs:96
Method
index_mut
(&mut self, index: [usize; 2])
aoc_lib/src/matrix.rs:102
Function
lcm
(a: T, b: T)
aoc_lib/src/math.rs:13
Function
load
Load the input for the given year and day. Removes carriage returns and trims leading and trailing whitespace.
common/src/misc.rs:5
Function
main
()
src/main.rs:9
Function
main
()
scaffold/src/main.rs:16
Method
new
(pos: Pos, facing: Direction, turn_distance: u8)
aoc_2023/src/day_17.rs:87
Method
new
(timer: u32)
aoc_2021/src/day_06.rs:25
Method
new
(input: &str)
aoc_2024/src/day_06.rs:38
Method
new
(input: &str)
aoc_2024/src/day_03.rs:50
Method
new
(pos: Vec2<usize>, dir: Direction, score: u32)
aoc_2024/src/day_16.rs:135
Method
new
(size: Vec2<usize>, default: T)
aoc_lib/src/matrix.rs:16
Method
new
(token: &str)
scaffold/src/session.rs:16
Method
new
(format: &str)
scaffold/src/formatter.rs:32
Method
new
(name: &str)
aoc_2022/src/day_07.rs:91
Method
new
(raw: &str)
aoc_2022/src/day_21.rs:43
Method
new
(raw: &str)
aoc_2022/src/day_20.rs:24
Method
new
(raw: &str)
aoc_2022/src/day_17.rs:105
Method
new
()
aoc_2022/src/day_19.rs:40
Function
out
(iter: impl Iterator<Item = Button>)
aoc_2024/src/day_21.rs:108
Method
parse
(inp: &str)
aoc_2021/src/day_04.rs:100
Method
parse
(input: &str)
aoc_2024/src/day_14.rs:46
Method
parse
(input: &str)
aoc_2024/src/day_07.rs:46
Method
parse
(input: &str, part_b: bool)
aoc_2024/src/day_15.rs:37
Method
parse
(input: &str, size: Vec2<usize>)
aoc_2024/src/day_18.rs:53
Method
parse
(input: &str)
aoc_2024/src/day_09.rs:33
Method
parse
(input: &str)
aoc_2024/src/day_13.rs:57
Method
parse
(input: &str)
aoc_2024/src/day_20.rs:25
Method
parse
(input: &str)
aoc_2024/src/day_10.rs:29
Method
parse
(input: &str)
aoc_2024/src/day_08.rs:65
Method
parse
(input: &str)
aoc_2024/src/day_16.rs:47
Method
parse
(input: &str)
aoc_2024/src/day_25.rs:45
Method
parse
(input: &'a str)
aoc_2024/src/day_24.rs:139
Method
parse
(input: &str)
aoc_2024/src/day_17.rs:101
Method
parse
(input: &str)
aoc_2024/src/day_12.rs:60
Method
parse
(input: &'a str)
aoc_2024/src/day_19.rs:23
Method
parse
(input: &str, parse: fn(char) -> T)
aoc_lib/src/matrix.rs:26
Method
parse
(name: &str, args: &str)
scaffold/src/formatter.rs:62
Method
parse
(inp: &str)
aoc_2022/src/day_11.rs:82
Method
parse
(raw: &str)
aoc_2022/src/day_15.rs:43
Method
parse
(raw: &str)
aoc_2022/src/day_18.rs:53
← previous
next →
301–400 of 628, ranked by callers