Skip to content

Commit 8f3aba5

Browse files
authored
Merge pull request exercism#628 from exercism/ocr-numbers
ocr-numbers: estimate difficulty, position
2 parents cb9089c + b73f874 commit 8f3aba5

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎config.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@
270270
"difficulty": 7,
271271
"topics": []
272272
},
273-
{
274-
"slug": "rectangles",
275-
"difficulty": 7,
276-
"topics": []
277-
},
278273
{
279274
"slug": "meetup",
280275
"difficulty": 7,
@@ -290,6 +285,16 @@
290285
"difficulty": 7,
291286
"topics": []
292287
},
288+
{
289+
"slug": "ocr-numbers",
290+
"difficulty": 8,
291+
"topics": []
292+
},
293+
{
294+
"slug": "rectangles",
295+
"difficulty": 8,
296+
"topics": []
297+
},
293298
{
294299
"slug": "book-store",
295300
"difficulty": 8,
@@ -325,11 +330,6 @@
325330
"difficulty": 1,
326331
"topics": []
327332
},
328-
{
329-
"slug": "ocr-numbers",
330-
"difficulty": 1,
331-
"topics": []
332-
},
333333
{
334334
"slug": "run-length-encoding",
335335
"difficulty": 1,

‎exercises/ocr-numbers/src/example/java/OpticalCharacterReader.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
final class OpticalCharacterReader {
1010

11-
private static final int ROWS_PER_LINE = 4;
11+
private static final int ROWS_PER_LINE = 4;
1212

1313
private static final int COLS_PER_SSD = 3;
1414

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

59-
final int inputColumnCount = input.get(0).length();
59+
final int inputColCount = input.get(0).length();
6060

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

0 commit comments

Comments
 (0)