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
Method
add_rock
(&mut self)
aoc_2022/src/day_17.rs:134
↓ 1 callers
Method
advance
(&self, pos: Pos)
aoc_2022/src/day_24.rs:183
↓ 1 callers
Method
as_vector
(&self)
aoc_lib/src/direction/cardinal.rs:22
↓ 1 callers
Method
available
(&self, pos: Pos)
aoc_2022/src/day_24.rs:86
↓ 1 callers
Function
basin
(map: &mut Vec<Vec<u32>>, x: usize, y: usize)
aoc_2021/src/day_09.rs:58
↓ 1 callers
Function
basins
(mut inp: Vec<Vec<u32>>)
aoc_2021/src/day_09.rs:44
↓ 1 callers
Method
bounds
(&self)
aoc_2021/src/day_13.rs:71
↓ 1 callers
Method
bounds
(&self)
aoc_2022/src/day_18.rs:69
↓ 1 callers
Method
bounds
(&self)
aoc_2022/src/day_23.rs:133
↓ 1 callers
Function
bron_kerbosch
( graph: &HashMap<&'a str, HashSet<&'a str>>, r: &mut HashSet<&'a str>, p: &mut HashSet<&'a str>,
aoc_2024/src/day_23.rs:61
↓ 1 callers
Method
build
(&self, resources: &mut [u8; 4])
aoc_2022/src/day_19.rs:174
↓ 1 callers
Function
calc_size
(ranges: &[(u32, u32); 4])
aoc_2023/src/day_19.rs:103
↓ 1 callers
Method
can_push
(&self, pos: Vec2<usize>, dir: Direction)
aoc_2024/src/day_15.rs:144
↓ 1 callers
Method
cant_beat
(&self, ticks: u8, max_geodes: u8)
aoc_2022/src/day_19.rs:56
↓ 1 callers
Method
cheapest
(&self)
aoc_2024/src/day_13.rs:26
↓ 1 callers
Method
cmp
(&self, other: &Self)
aoc_2021/src/day_15.rs:78
↓ 1 callers
Method
collision
(&self, other: &Self)
aoc_2023/src/day_24.rs:96
↓ 1 callers
Method
count_blank
(&self)
aoc_2022/src/day_23.rs:99
↓ 1 callers
Function
cycle
(ins: &[Instruction])
aoc_2022/src/day_10.rs:67
↓ 1 callers
Method
derive
(&self)
aoc_2023/src/day_09.rs:40
↓ 1 callers
Function
digits
(i: &str)
aoc_2023/src/day_01.rs:31
↓ 1 callers
Function
dir_matches
(dir: Direction, chr: char)
aoc_2023/src/day_23.rs:131
↓ 1 callers
Method
directions
(&self)
aoc_2022/src/day_24.rs:194
↓ 1 callers
Method
dump
(&self)
aoc_2021/src/day_05.rs:67
↓ 1 callers
Function
encode
(real: i64)
aoc_2022/src/day_25.rs:30
↓ 1 callers
Method
evaluate
(&self, a: u64, b: u64)
aoc_2024/src/day_07.rs:103
↓ 1 callers
Method
evaluate
(self, proc: &mut Processor, (combo, literal): (Option<Argument>, u64))
aoc_2024/src/day_17.rs:165
↓ 1 callers
Method
expand
(&self)
aoc_2023/src/day_12.rs:86
↓ 1 callers
Function
fetch_input
(session: &Session, base: &Url, day: u8, year: u16)
scaffold/src/commands/init.rs:103
↓ 1 callers
Method
fill
(&mut self, value: T)
aoc_lib/src/matrix.rs:88
↓ 1 callers
Function
find_sequence
(haystack: &[i8], (a, b, c, d): (i8, i8, i8, i8))
aoc_2024/src/day_22.rs:79
↓ 1 callers
Method
fits
(&self, other: &Self)
aoc_2024/src/day_25.rs:69
↓ 1 callers
Method
flood_fill
(&self, start: Pos)
aoc_2022/src/day_18.rs:81
↓ 1 callers
Method
flush
(working: &mut String, out: &mut Vec<Self>)
aoc_2022/src/day_22.rs:148
↓ 1 callers
Function
gcd
(mut a: T, mut b: T)
aoc_lib/src/math.rs:3
↓ 1 callers
Method
get
(&self, pos: Vec2<usize>)
aoc_lib/src/matrix.rs:57
↓ 1 callers
Function
get_answer
(cmd: &SubmitArgs)
scaffold/src/commands/submit.rs:27
↓ 1 callers
Method
horizontal_reflection
Find a horizontal reflection in the valley. Horizontal reflections is from left to right.
aoc_2023/src/day_13.rs:45
↓ 1 callers
Function
important_connections
(connections: &'a HashMap<&'a str, Connection<'a>>)
aoc_2023/src/day_20.rs:129
↓ 1 callers
Method
index
(&self)
aoc_2022/src/day_19.rs:165
↓ 1 callers
Method
info
(&self)
aoc_2022/src/day_10.rs:48
↓ 1 callers
Function
init
(session: &Session, cmd: &InitArgs, args: &Args)
scaffold/src/commands/init.rs:18
↓ 1 callers
Function
intersecting_line
( (la, lb): (&Vec2<u64>, &Vec2<u64>), (min, max): (Vec2<u64>, Vec2<u64>), )
aoc_2025/src/day_09.rs:56
↓ 1 callers
Method
into_tuple
(self)
aoc_lib/src/vector.rs:7
↓ 1 callers
Method
is_eof
(&self)
aoc_2024/src/day_03.rs:84
↓ 1 callers
Method
is_from_env
(&self)
scaffold/src/session.rs:31
↓ 1 callers
Method
is_possible
(&self)
aoc_2023/src/day_02.rs:77
↓ 1 callers
Function
is_safe
(input: &[i32])
aoc_2024/src/day_02.rs:16
↓ 1 callers
Function
is_safe_b
(input: &[i32], skip: Option<usize>)
aoc_2024/src/day_02.rs:25
↓ 1 callers
Function
joltage
(digits: &[u8], n: usize)
aoc_2025/src/day_03.rs:26
↓ 1 callers
Function
list
(cmd: &ListArgs)
src/commands/list.rs:5
↓ 1 callers
Function
load_raw
Load the input for the given year and day.
common/src/misc.rs:10
↓ 1 callers
Method
loops
(&self, obstacle: Vec2<usize>)
aoc_2024/src/day_06.rs:77
↓ 1 callers
Method
losing_solve
(self)
aoc_2021/src/day_04.rs:70
↓ 1 callers
Function
lowest
(inp: Vec<Vec<u32>>)
aoc_2021/src/day_09.rs:25
↓ 1 callers
Function
make_lines
(raw: &str, width: usize)
aoc_2022/src/day_10.rs:56
↓ 1 callers
Function
make_node
(name: &str)
aoc_2021/src/day_12.rs:83
↓ 1 callers
Function
map_pos
(pos: Vec2<i32>, size: Vec2<i32>)
aoc_2023/src/day_21.rs:75
↓ 1 callers
Method
matching_dir
(&self, direction: Direction)
aoc_2023/src/day_16.rs:110
↓ 1 callers
Function
move_crabs
(crabs: &[u32], to: u32)
aoc_2021/src/day_07.rs:48
↓ 1 callers
Function
move_crabs_b
(crabs: &[u32], to: u32)
aoc_2021/src/day_07.rs:57
↓ 1 callers
Method
multiply
(self, val: i64)
aoc_2022/src/day_20.rs:42
↓ 1 callers
Method
next_flow
(&mut self)
aoc_2022/src/day_17.rs:188
↓ 1 callers
Method
next_instruction
(&mut self)
aoc_2024/src/day_17.rs:138
↓ 1 callers
Method
next_move
(&self, pos: &Point)
aoc_2022/src/day_23.rs:115
↓ 1 callers
Function
next_release
()
scaffold/src/commands/timer.rs:57
↓ 1 callers
Function
octo_neighbors
(octopi: &[Vec<Octopus>], x: usize, y: usize)
aoc_2021/src/day_11.rs:85
↓ 1 callers
Function
parse
(input: &str)
aoc_2023/src/day_15.rs:45
↓ 1 callers
Function
parse
(input: &str)
aoc_2023/src/day_25.rs:29
↓ 1 callers
Function
parse
(input: &str)
aoc_2025/src/day_12.rs:30
↓ 1 callers
Method
parse
(raw: &str)
aoc_2022/src/day_22.rs:51
↓ 1 callers
Function
parse_a
(input: &str)
aoc_2023/src/day_06.rs:24
↓ 1 callers
Function
parse_a
(input: &str)
aoc_2023/src/day_18.rs:61
↓ 1 callers
Function
parse_b
(input: &str)
aoc_2023/src/day_06.rs:39
↓ 1 callers
Function
parse_b
(input: &str)
aoc_2023/src/day_18.rs:43
↓ 1 callers
Function
parse_crates
(raw: &str)
aoc_2022/src/day_05.rs:40
↓ 1 callers
Method
parse_processor
(&mut self)
scaffold/src/formatter.rs:176
↓ 1 callers
Method
part_b
(mut self)
aoc_2024/src/day_13.rs:83
↓ 1 callers
Function
permutations
Modified from https://stackoverflow.com/a/59939809/12471934
aoc_2021/src/day_08.rs:124
↓ 1 callers
Method
points
(&self)
aoc_2022/src/day_14.rs:143
↓ 1 callers
Method
possible
Returns the number of possible towel designs by counting all the towels that can be made a non-zero number of ways.
aoc_2024/src/day_19.rs:33
↓ 1 callers
Method
predict
(&self)
aoc_2023/src/day_09.rs:62
↓ 1 callers
Method
print
(&self)
aoc_2021/src/day_13.rs:77
↓ 1 callers
Method
process
(&mut self, steps: usize)
aoc_2021/src/day_14.rs:27
↓ 1 callers
Method
process
(&self, input: &str)
scaffold/src/formatter.rs:75
↓ 1 callers
Method
propagate_size
(&mut self)
aoc_2022/src/day_07.rs:113
↓ 1 callers
Method
push_b
(&mut self, pos: Vec2<usize>, dir: Direction)
aoc_2024/src/day_15.rs:172
↓ 1 callers
Method
remove_garbage
(&mut self, walls: &HashSet<Pos>)
aoc_2023/src/day_10.rs:140
↓ 1 callers
Method
reverse
(mut self)
aoc_2023/src/day_09.rs:57
↓ 1 callers
Method
reverse
Walks backwards from the end using a BFS to find all the tiles that are on any of the shortest path.
aoc_2024/src/day_16.rs:98
↓ 1 callers
Method
root_eq
(mut self)
aoc_2022/src/day_21.rs:104
↓ 1 callers
Function
run_inserters
(cmd: &InitArgs, formats: &[(&str, String)])
scaffold/src/commands/init.rs:71
↓ 1 callers
Method
score
(&self)
aoc_2024/src/day_14.rs:92
↓ 1 callers
Method
score
Simple BFS for pathfinding, where we don't avoid going to already explored tiles if on part B.
aoc_2024/src/day_10.rs:44
↓ 1 callers
Method
score_first
(&self, other: &Hand)
aoc_2023/src/day_07.rs:124
↓ 1 callers
Method
search
(&self, bounds: isize)
aoc_2022/src/day_15.rs:60
↓ 1 callers
Function
solve
(exp: &[u64], n: usize, a: u64)
aoc_2024/src/day_17.rs:36
↓ 1 callers
Method
solve
== Solve ==
aoc_2022/src/day_21.rs:68
↓ 1 callers
Function
solve_a
Simple DFS to find the longest path for part A
aoc_2023/src/day_23.rs:23
↓ 1 callers
Function
solve_a
(stones: &[HailStone<i64>], range: RangeInclusive<f64>)
aoc_2023/src/day_24.rs:73
← previous
next →
201–300 of 628, ranked by callers