Skip to content

Commit

Permalink
Align class and file names (#460)
Browse files Browse the repository at this point in the history
Rename `Exercise` class to `LargestSeriesProduct` (matches file name and the class name expected by the tests
- in stub file
- in reference solution
  • Loading branch information
artamonovkirill authored Oct 15, 2024
1 parent a79c9b3 commit fb47b33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Exercise {
class LargestSeriesProduct {
static int largestProduct(String digits, final int span) {
if (span < 0) throw new IllegalArgumentException("span must not be negative")
if (span > digits.length()) throw new IllegalArgumentException("span must be smaller than string length")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Exercise {
class LargestSeriesProduct {
static largestProduct(digits, span) {
throw new UnsupportedOperationException('Method implementation is missing')
}
}
}

0 comments on commit fb47b33

Please sign in to comment.