i have written code but not able to proceed to make segment tree can u help me
Fibonacci ka gcd wala question
i`ll help u out wait let me see
just make a segment tree which is made by calculating the gcd of the given range
and then for each query calculate the gcd for the range
try coding it for urself , in case of doubt refer to the below code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.