One of the two distinct must appear exactly once . Either the first entry appears once , or it appears n / k - 1 times to make other substring appear once .
if ( entry . Value == ( n / k - 1 ) entry . Value == 1 ) return true ; } return false ; }