Friday, December 1, 2023

Advent of Code 2023 - Day 1 - Salesforce Apex

Advent of Code has begun! I'll be completing this year's coding challenges using Apex. 

--- Day 1: Trebuchet?! ---

Let's dive into Day 1's challenge part 1. Setting up a reusable LWC Puzzle Input File Reader. And with Apex, I'll tackle the first part of the puzzle.

https://adventofcode.com/2023/day/1


Reusable LWC Puzzle Input File Reader

Reusable Puzzle Input Apex File Reader
Day 01 Solution
Day 01 - Part 1 complete!
Day 01 - Part 2
Day 01 - Part 2 Solution
Day 01 - Part 2 complete!


1 comment:

  1. Thanks for sharing, its helpful. I think we can use String.reverse() to use the firstMatch(). This way we may not need lastMatch(). Is my understanding correct ? I have not tried myself but will check on weekend.

    ReplyDelete