static boolean areKDistant ( String str1 , String str2 , int k ) {
  int m = str1 . length ( ) ;
  int n = str2 . length ( ) ;
  if ( Math . abs ( m - n ) > k ) return false ;
  return ( editDistDP ( str1 , str2 , m , n ) <= k ) ;
}

static boolean areKDistant ( String str1 , String str2 , int k ) { int m = str1 . length ( ) ; int n = str2 . length ( ) ; if ( Math . abs ( m - n ) > k ) return false ; return ( editDistDP ( str1 , str2 , m , n ) <= k ) ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (return_statement (false))) (return_statement (parenthesized_expression (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))) right: (identifier))))))