Compute Prefix Hash and Suffix Hash Arrays
computePrefixHash ( str , n , prefix , power ) ; computeSuffixHash ( str , n , suffix , power ) ; Query [ ] q = { new Query ( 0 , 10 ) , new Query ( 5 , 8 ) , new Query ( 2 , 5 ) , new Query ( 5 , 9 ) } ; int m = q . Length ; queryResults ( str , q , m , n , prefix , suffix , power ) ; } }