Driver Code
public static void Main ( String [ ] args ) { int [ ] a = { 7 , 2 , 3 , 0 , 5 , 10 , 3 , 12 , 18 } ; int n = a . Length ; buildSparseTable ( a , n ) ; Console . Write ( query ( 0 , 2 ) + " STRNEWLINE " ) ; Console . Write ( query ( 1 , 3 ) + " STRNEWLINE " ) ; Console . Write ( query ( 4 , 5 ) + " STRNEWLINE " ) ; } }