Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,6 @@
"difficulty": 7,
"topics": []
},
{
"slug": "rectangles",
"difficulty": 7,
"topics": []
},
{
"slug": "meetup",
"difficulty": 7,
Expand All @@ -290,6 +285,16 @@
"difficulty": 7,
"topics": []
},
{
"slug": "ocr-numbers",
"difficulty": 8,
"topics": []
},
{
"slug": "rectangles",
"difficulty": 8,
"topics": []
},
{
"slug": "book-store",
"difficulty": 8,
Expand Down Expand Up @@ -325,11 +330,6 @@
"difficulty": 1,
"topics": []
},
{
"slug": "ocr-numbers",
"difficulty": 1,
"topics": []
},
{
"slug": "run-length-encoding",
"difficulty": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
final class OpticalCharacterReader {

private static final int ROWS_PER_LINE = 4;
private static final int ROWS_PER_LINE = 4;

private static final int COLS_PER_SSD = 3;

Expand Down Expand Up @@ -56,9 +56,9 @@ private void validateInput(final List<String> input) {
"Number of input rows must be a positive multiple of " + ROWS_PER_LINE);
}

final int inputColumnCount = input.get(0).length();
final int inputColCount = input.get(0).length();

if (inputColumnCount == 0 || inputColumnCount % 3 != 0) {
if (inputColCount == 0 || inputColCount % 3 != 0) {
throw new IllegalArgumentException(
"Number of input columns must be a positive multiple of " + COLS_PER_SSD);
}
Expand Down