File tree Expand file tree Collapse file tree
exercises/ocr-numbers/src/example/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 270270 "difficulty" : 7 ,
271271 "topics" : []
272272 },
273- {
274- "slug" : " rectangles" ,
275- "difficulty" : 7 ,
276- "topics" : []
277- },
278273 {
279274 "slug" : " meetup" ,
280275 "difficulty" : 7 ,
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 ,
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 ,
Original file line number Diff line number Diff line change 88 */
99final 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 }
You can’t perform that action at this time.
0 commit comments