Class SolutionDay23

java.lang.Object
com.expedient.adventofcodejade.BaseSolution
com.expedient.adventofcodejade.solutions.year2024.SolutionDay23

public class SolutionDay23 extends BaseSolution
  • Constructor Details

  • Method Details

    • hasThreeInCommon

      public boolean hasThreeInCommon(Set<String> one, Set<String> two)
    • threeThatAreInCommon

      public Set<String> threeThatAreInCommon(Set<String> one, Set<String> two, Set<String> three)
    • partOne

      public Object partOne(PuzzleInput input)
      Description copied from class: BaseSolution
      Logic for part one of the solution. Must be overridden when implementing the solution.
      Specified by:
      partOne in class BaseSolution
      Parameters:
      input - the PuzzleInput to be used for the solution
      Returns:
      output of this part of the solution
    • partTwo

      public Object partTwo(PuzzleInput input)
      Finds maximal clique starting from each computer in the list, saving the largest one encountered so far. Returns a string joining all PCs in the sorted largest clique
      Specified by:
      partTwo in class BaseSolution
      Parameters:
      input - the PuzzleInput to be used for the solution
      Returns:
      joined string listing all PCs in the largest LAN party (alphabetical order)