Repository to store the solutions for the problems of AdventOfCode. Doing it in Apex, challenge accepted!
Within Deloitte an internal competition is ongoing, with a real Salesforce hoodie at stake! So get ready :).
Since the repo might look a little complex / full, please find some useful hooks in the Table of Content below.
Below is an overview of all exercises, their title and solution description. Per exercise the Solution is described by language used, where default is Apex and only some have Javascript in case it wasn't possible to bypass the Apex CPU Time Limit. Then it was always tried with Queueables but due to DEV Org restriction of only queueing 5, this would also be still restricted to 300 seconds in total.
Day | Name | Description | Solution |
---|---|---|---|
01 | Sonar Sweep | Increase/Decrease Detection | Apex & Excel |
02 | Dive! | Submarine Control | Apex & Excel |
03 | Binary Diagnostic | Most/Least Common Binary Digit | Apex & Excel |
04 | Giant Squid | Bingo Boards | Apex & Excel |
05 | Hydrothermal Venture | Overlapping Line Segments | Apex |
06 | LanternFish | Population Growth | Apex & Excel |
07 | The Treachery Of Whales | Crab Alignment Fuel Costs | Apex & Excel |
08 | Seven Segment Search | Digit Display/Segment Decoding | Apex |
09 | Smoke Basin | LowestPoint Basin sizes | Apex & Excel (p1) |
10 | Syntax Scoring | Brackets (corrupt lines & auto-complete) | Apex |
11 | Dumbo Octopus | Energy Flash Level simulations | Apex |
12 | Passage Pathing | Finding ALL Possible Paths | Apex |
13 | Transparent Origami | Folding Matrices | Apex |
14 | Extended Polymerization | Letter Duple injections | Apex |
15 | Chiton | Shortest Path (Dijkstra & Priority Queue | Apex: input prepare part 1 JS: part 1 & part 2 |
16 | Package Decoder | Hexa Binary (subpackage) Converter | Apex |
17 | TrickShot | Probe Orbit simulation | Apex |
18 | Snailfish | Exploding/Split sums in Trees | Apex (Future) |
19 | BeaconScanner | Coordinate Rotation | Apex (Queueable) |
20 | Trench Map | Image Enlightment | Apex |
21 | Dirac Dice | Quantum Die Player Wins | Apex (Queueable): part 1 JS: part2 |
22 | Reactor Reboot | Distinct Cube Coordinates | Apex (Future) |
23 | Amphipods | Relocating rooms to group | Manual |
24 | Arithmetic Logic Unit | Model code generator & validator | Apex |
25 | Sea Cucumber | (Snake) Move till stuck | Apex (Queuable): Full JS: Full |
Cheers!
Reinier van den Assum https://www.foxy-solutions.com