This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use aoc_runner_derive::aoc; | |
use std::iter::FromIterator; | |
#[derive(Debug, Eq, PartialEq, Clone, Copy)] | |
struct AlphabetSet { | |
contains: u32, | |
} | |
impl AlphabetSet { | |
fn empty() -> Self { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use aoc_runner_derive::aoc; | |
use std::convert::TryInto; | |
const TOTAL_SIZE: usize = 10; | |
const LINE_SIZE: usize = TOTAL_SIZE + 1; | |
struct Input<'a>(&'a [u8]); | |
impl<'a> Iterator for Input<'a> { | |
type Item = BinarySpacePartitioning; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::f32::consts::PI; | |
/// The exponent coefficient. Determines the contribution from higher frequencies. | |
const S: f32 = 0.01; | |
/// The discrete distance difference to use. | |
const DELTA_D: f32 = 0.01; | |
/// The total size of the box, after which the geometry is periodic. | |
const TOTAL_DISTANCE: f32 = 1.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +thomasdh is my blockchain ID. https://onename.com/thomasdh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ThomasdenH on github. | |
* I am thomasdh (https://keybase.io/thomasdh) on keybase. | |
* I have a public key whose fingerprint is 3E32 7B99 0DD3 0A85 8FC8 A056 74D4 F01B 7D31 9953 | |
To claim this, I am signing this object: |