public static int process ( TestCase testCase ) {
  String S = testCase . S ;
  int min = Integer . MAX_VALUE ;
  for ( int i = 2 , length = S . length ( ) ;
  i < length ;
  ++ i ) {
    final int num = Integer . valueOf ( S . substring ( i - 2 , i + 1 ) ) ;
    min = Math . min ( min , diff ( num ) ) ;
  }
  return min ;
}

public static int process ( TestCase testCase ) { String S = testCase . S ; int min = Integer . MAX_VALUE ; for ( int i = 2 , length = S . length ( ) ; i < length ; ++ i ) { final int num = Integer . valueOf ( S . substring ( i - 2 , i + 1 ) ) ; min = Math . min ( min , diff ( num ) ) ; } return min ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration (modifiers) type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (method_invocation name: (identifier) arguments: (argument_list (identifier))))))))) (return_statement (identifier))))