You are viewing a single comment's thread. Return to all comments →
i didn't get the why query (q) is used for can you please explain
the question checks the impllementation of loops. we have to run through a,b and n to get the desired output. Query specifies how many times we have to print the sequences.
You can break the problem by first getting one sequence, and then running it q times over.
it show that how many lines of geometric series will come (a+b(2^n-1))
it is just the no. of test cases.