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
#include <cassert> | |
#include <iostream> | |
#include <vector> | |
template <class T> | |
using vec = std::vector<T>; | |
template <class T> | |
using mat = vec<vec<T>>; |
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
export enum SpinnerStatus { | |
NotStarted, | |
Running, | |
Done, | |
} | |
export type Spinner = { | |
text: string; | |
status: SpinnerStatus; | |
runner: () => Promise<void>; |
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
/* | |
* ============================================================================ | |
* | |
* Filename: day6.cpp | |
* | |
* Description: Day 6 of Advent of Code solution | |
* | |
* Version: 1.0 | |
* Created: 12/7/2019 12:30:12 AM | |
* Revision: none |
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
/* | |
* =========================================================================== | |
* | |
* Filename: day5.cpp | |
* | |
* Description: Day 5 of Advent of Code solution | |
* | |
* Version: 1.0 | |
* Created: 12/5/2019 6:41:38 PM | |
* Revision: none |
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
/* | |
* ============================================================================ | |
* | |
* Filename: day4.cpp | |
* | |
* Description: Day 4 of Advent of Code solution | |
* | |
* Version: 1.0 | |
* Created: 12/4/2019 7:23:58 PM | |
* Revision: none |
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
/* | |
* =========================================================================== | |
* | |
* Filename: day3.cpp | |
* | |
* Description: Day 3 of Advent of Code solution | |
* | |
* Version: 1.0 | |
* Created: 12/3/2019 5:04:05 PM | |
* Revision: none |
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
/* | |
* ===================================================================================== | |
* | |
* Filename: day2.cpp | |
* | |
* Description: Day 2 of Advent of Code solution | |
* | |
* Version: 1.0 | |
* Created: 12/2/2019 6:20:07 PM | |
* Revision: none |
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
/* | |
* ===================================================================================== | |
* | |
* Filename: day2.cpp | |
* | |
* Description: Day 2 of Advent of Code solution | |
* | |
* Version: 1.0 | |
* Created: 12/2/2019 6:20:07 PM | |
* Revision: none |