A function to answer queries of longest common extension
static void LCEQueries ( String str , int n , Query [ ] q , int m ) { for ( int i = 0 ; i < m ; i ++ ) { int L = q [ i ] . L ; int R = q [ i ] . R ; Console . WriteLine ( " LCE ▁ ( " + L + " , ▁ " + R + " ) ▁ = ▁ " + LCE ( str , n , L , R ) ) ; } return ; }