May I know the mistake as my code is not working for all the test cases
Fibonacci meets GCD problem
@nayakashutosh99
Issue is with your return of lcm when query is out of bounds
Have a look at this code for reference
For TLE use reference variables and Fast IO
okay then will check out this code. thank you!!!
1 Like