MCPcopy Create free account

hub / github.com/connorslade/advent-of-code / functions

Functions628 in github.com/connorslade/advent-of-code

↓ 1 callersFunctionsolve_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 callersFunctionsolve_b
(rules: &HashMap<&str, Vec<Rule>>, mut range: [(u32, u32); 4], map: &str)
aoc_2023/src/day_19.rs:59
↓ 1 callersFunctionsolve_dirpad
( memo: &mut HashMap<(Vec<Button>, u8), u64>, sequence: Vec<Button>, depth: u8, )
aoc_2024/src/day_21.rs:67
↓ 1 callersMethodsort_pages
(&self, idx: usize)
aoc_2024/src/day_05.rs:70
↓ 1 callersMethodspin
(&mut self)
aoc_2023/src/day_14.rs:77
↓ 1 callersFunctionsplit_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 callersMethodstart_contains
(&self, value: u32)
aoc_2023/src/day_05.rs:95
↓ 1 callersMethodstate
(&self)
aoc_2022/src/day_17.rs:114
↓ 1 callersFunctionsubmit
(session: &Session, cmd: &SubmitArgs, args: &Args)
scaffold/src/commands/submit.rs:15
↓ 1 callersFunctionsubmit_answer
(session: &Session, cmd: &SubmitArgs, args: &Args, answer: &str)
scaffold/src/commands/submit.rs:75
↓ 1 callersMethodtick
(&mut self)
aoc_2021/src/day_11.rs:37
↓ 1 callersMethodtick
(&mut self, part_b: bool)
aoc_2024/src/day_15.rs:94
↓ 1 callersFunctiontick_octopi
(octopi: &mut Vec<Vec<Octopus>>, x: usize, y: usize)
aoc_2021/src/day_11.rs:74
↓ 1 callersFunctiontimer
(cmd: &TimerArgs)
scaffold/src/commands/timer.rs:15
↓ 1 callersFunctiontoken
(session: &Option<Session>, cmd: &TokenArgs, args: &Args)
scaffold/src/commands/token.rs:10
↓ 1 callersFunctiontokenisze
(raw: &str)
aoc_2022/src/day_13.rs:68
↓ 1 callersMethodtokenize
(mut self)
scaffold/src/formatter.rs:117
↓ 1 callersMethodtokenize_format
(&mut self)
scaffold/src/formatter.rs:148
↓ 1 callersMethodtokenize_literal
(&mut self)
scaffold/src/formatter.rs:130
↓ 1 callersMethodtotal_distance
(&self)
aoc_2024/src/day_14.rs:64
↓ 1 callersMethodtrailheads
Find the coordinates of all 0s
aoc_2024/src/day_10.rs:35
↓ 1 callersFunctionturn
(facing: Direction, tile: char)
aoc_2023/src/day_10.rs:157
↓ 1 callersMethodturn
(&self, dir: &Direction)
aoc_2022/src/day_22.rs:176
↓ 1 callersFunctionverify
(session: &Session, address: &Url)
scaffold/src/commands/verify.rs:7
↓ 1 callersMethodverify
(&self, address: &Url)
scaffold/src/session.rs:35
↓ 1 callersMethodvertical_reflection
(&self, error: usize)
aoc_2023/src/day_13.rs:66
↓ 1 callersMethodways
Here we just sum up the number of ways each towel can be made.
aoc_2024/src/day_19.rs:41
↓ 1 callersMethodways_to_win
(&self)
aoc_2023/src/day_06.rs:56
↓ 1 callersFunctionwrite_input
(cmd: &InitArgs, input: ProblemInput, formats: &[(&str, String)])
scaffold/src/commands/init.rs:95
↓ 1 callersFunctionwrite_scaffold
(cmd: &InitArgs, formats: &[(&str, String)])
scaffold/src/commands/init.rs:54
Methodadvance
(&self, pos: Vec2<T>)
aoc_lib/src/direction/cardinal.rs:43
Methodcheck
(data: Vec<Board>)
aoc_2021/src/day_04.rs:140
Methodcontains
(&self, pos: Vec2<K>)
aoc_lib/src/matrix.rs:40
Functioncurrent_year
()
src/args.rs:58
Functioncurrent_year
()
scaffold/src/misc.rs:18
Methoddebug
(&self)
aoc_2024/src/day_14.rs:73
Methoddebug
(&self, proc: &Processor, (combo, literal): (Option<Argument>, u64))
aoc_2024/src/day_17.rs:185
Functiondecode
(s: &str)
aoc_2022/src/day_25.rs:15
Functiondefault_insertion
()
scaffold/src/commands/init.rs:149
Methodeq
(&self, other: &Self)
aoc_lib/src/matrix.rs:133
Methodfirst_word
(s: &str)
aoc_2022/src/day_19.rs:130
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
aoc_2024/src/day_17.rs:89
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
common/src/answer.rs:12
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
common/src/part.rs:25
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
aoc_lib/src/matrix.rs:148
Methodfrom
(s: String)
common/src/answer.rs:23
Methodfrom_char
(c: char)
aoc_2023/src/day_16.rs:99
Methodfrom_char
(input: char)
aoc_2022/src/day_24.rs:217
Methodfrom_env
()
scaffold/src/session.rs:23
Methodfrom_index
(i: usize)
aoc_2022/src/day_02.rs:70
Methodfrom_index
(i: usize)
aoc_2022/src/day_22.rs:157
Functionfrom_line
Direction, count
aoc_2022/src/day_09.rs:46
Methodfrom_program
(code: u64)
aoc_2024/src/day_17.rs:151
Methodfrom_str
(s: &str)
common/src/part.rs:15
Methodfrom_str
`{location}:{marker}:{template}`
scaffold/src/args.rs:147
Methodfrom_str
(s: &str)
aoc_2022/src/day_02.rs:61
Methodget_mut
(&mut self, pos: Vec2<usize>)
aoc_lib/src/matrix.rs:62
Methodhash
(&self, state: &mut H)
aoc_lib/src/matrix.rs:141
Methodindex
(unit: char)
aoc_2021/src/day_14.rs:28
Methodindex
(&self, index: [usize; 2])
aoc_lib/src/matrix.rs:96
Methodindex_mut
(&mut self, index: [usize; 2])
aoc_lib/src/matrix.rs:102
Functionlcm
(a: T, b: T)
aoc_lib/src/math.rs:13
Functionload
Load the input for the given year and day. Removes carriage returns and trims leading and trailing whitespace.
common/src/misc.rs:5
Functionmain
()
src/main.rs:9
Functionmain
()
scaffold/src/main.rs:16
Methodnew
(pos: Pos, facing: Direction, turn_distance: u8)
aoc_2023/src/day_17.rs:87
Methodnew
(timer: u32)
aoc_2021/src/day_06.rs:25
Methodnew
(input: &str)
aoc_2024/src/day_06.rs:38
Methodnew
(input: &str)
aoc_2024/src/day_03.rs:50
Methodnew
(pos: Vec2<usize>, dir: Direction, score: u32)
aoc_2024/src/day_16.rs:135
Methodnew
(size: Vec2<usize>, default: T)
aoc_lib/src/matrix.rs:16
Methodnew
(token: &str)
scaffold/src/session.rs:16
Methodnew
(format: &str)
scaffold/src/formatter.rs:32
Methodnew
(name: &str)
aoc_2022/src/day_07.rs:91
Methodnew
(raw: &str)
aoc_2022/src/day_21.rs:43
Methodnew
(raw: &str)
aoc_2022/src/day_20.rs:24
Methodnew
(raw: &str)
aoc_2022/src/day_17.rs:105
Methodnew
()
aoc_2022/src/day_19.rs:40
Functionout
(iter: impl Iterator<Item = Button>)
aoc_2024/src/day_21.rs:108
Methodparse
(inp: &str)
aoc_2021/src/day_04.rs:100
Methodparse
(input: &str)
aoc_2024/src/day_14.rs:46
Methodparse
(input: &str)
aoc_2024/src/day_07.rs:46
Methodparse
(input: &str, part_b: bool)
aoc_2024/src/day_15.rs:37
Methodparse
(input: &str, size: Vec2<usize>)
aoc_2024/src/day_18.rs:53
Methodparse
(input: &str)
aoc_2024/src/day_09.rs:33
Methodparse
(input: &str)
aoc_2024/src/day_13.rs:57
Methodparse
(input: &str)
aoc_2024/src/day_20.rs:25
Methodparse
(input: &str)
aoc_2024/src/day_10.rs:29
Methodparse
(input: &str)
aoc_2024/src/day_08.rs:65
Methodparse
(input: &str)
aoc_2024/src/day_16.rs:47
Methodparse
(input: &str)
aoc_2024/src/day_25.rs:45
Methodparse
(input: &'a str)
aoc_2024/src/day_24.rs:139
Methodparse
(input: &str)
aoc_2024/src/day_17.rs:101
Methodparse
(input: &str)
aoc_2024/src/day_12.rs:60
Methodparse
(input: &'a str)
aoc_2024/src/day_19.rs:23
Methodparse
(input: &str, parse: fn(char) -> T)
aoc_lib/src/matrix.rs:26
Methodparse
(name: &str, args: &str)
scaffold/src/formatter.rs:62
Methodparse
(inp: &str)
aoc_2022/src/day_11.rs:82
Methodparse
(raw: &str)
aoc_2022/src/day_15.rs:43
Methodparse
(raw: &str)
aoc_2022/src/day_18.rs:53
← previousnext →301–400 of 628, ranked by callers