Created
December 2, 2023 05:45
-
-
Save nickforce/651aaf1e54b4cfd4990aa711831b4612 to your computer and use it in GitHub Desktop.
Advent
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
public with sharing class Advent { | |
@AuraEnabled | |
public static Integer readPuzzleInput(String fileName, String fileContent) { | |
return read_lines(fileContent); | |
} | |
public static Integer read_lines(String puzzleInput) { | |
// Split by newline chars | |
List<String> lines = puzzleInput.split('\n'); | |
// call puzzle solution | |
return day01.part1(lines); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment