-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infinite speedup... inspired by @p-kovacs
Visit his solution: https://github.com/p-kovacs/advent-of-code-2023/blob/master/src/main/java/com/github/pkovacs/aoc/y2023/Day23.java I am not very good with low level tools, but they can be extremely effective. Switching to arrays and bit machinations could break down my last "slow" solution under the desired goal: 1 second. Usually I would not use these solutions (like connection matrix, especially in arrays...) I am not clever enough for them. But I could try his solution, and it was lightning fast compared to mine, and it has helped me to get: * any day under 1 second * all days under 10 seconds Once again it proves to be such a "multidiscpilinar" language such as Java, where you can use really high level tools, and really low level tools effectively as well.
- Loading branch information
Showing
1 changed file
with
22 additions
and
29 deletions.
There are no files selected for viewing
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