This file contains hidden or 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
| #pragma once | |
| #include <algorithm> | |
| #include <vector> | |
| template <typename T> struct NeverEmptyComparator { bool operator==(const T &) const { return false; } }; | |
| /// Computes the Levenshtein distance between a and b but insertion/deletion of elements equal to EmptyComparator() is free | |
| template <typename T, class EmptyComparator = NeverEmptyComparator<T> > |
This file contains hidden or 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 <artery-math.h> | |
| using namespace artery; | |
| // Fast Fourier Transform implementation by Viktor Chlumsky | |
| template <typename T, typename U> | |
| void fft(Complex<T> *dst, const U *src, int length, int stride = 1) { | |
| if (!(length >>= 1)) { | |
| *dst = *src; | |
| return; |
This file contains hidden or 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
| //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\// | |
| // GOTHIC 1 REMAKE LOCKPICK SOLVER | |
| // Uses bidirectional Dijkstra's algorithm | |
| // This version only optimizes total moves | |
| // Made by Viktor Chlumsky on 2026-07-26 | |
| /* EXAMPLE RUN (new camp tavern underwater chest): | |
| Initial positions (0 to 6): 41623 |
OlderNewer