Sir this was a problem i got in one of my interviews. There were N stones arranged in a circle numbered from 0 to N−1 in a clockwise direction. Alice observes peculiar frog resting on stone 0. The frog is peculiar because it jumps distance of i in a clockwise direction for every ith minute. i.e at the 0th minute the frog is at stone 0. at the 1st minute the frog is at stone 1. at the 2nd minute the frog is at stone 3. at the 3rd minute the frog is at stone 6. ans so on... You need to check if all stones will be visited by the frog at some point in time or not. You are given an integer N denoting the number of stones and the frog will keep jumping till infinity. how to approach this problem.
@@aniketmore8789 sir I watch this this video but combinatorics part is about only 9 min and I can't relate the solution C so can you please explain your approach of prblm C
Sir this was a problem i got in one of my interviews.
There were N stones arranged in a circle numbered from 0 to N−1 in a clockwise direction. Alice observes peculiar frog resting on stone 0. The frog is peculiar because it jumps distance of i in a clockwise direction for every ith minute.
i.e at the 0th minute the frog is at stone 0.
at the 1st minute the frog is at stone 1.
at the 2nd minute the frog is at stone 3.
at the 3rd minute the frog is at stone 6.
ans so on...
You need to check if all stones will be visited by the frog at some point in time or not. You are given an integer N denoting the number of stones and the frog will keep jumping till infinity.
how to approach this problem.
Kis interview mein?
But how to generate these test cases
How can I find the hacking input?
hacking aka bullying newbies
Sir i went through your solution c,
Can you please explain your approach or resources to learn combinatorics
Sir please reply
Utkarsh Gupta's video on Maths for DSA/CP .
@@aniketmore8789 sir I watch this this video but combinatorics part is about only 9 min and I can't relate the solution C so can you please explain your approach of prblm C
@@aniketmore8789please sir reply me
@@rachitgupta763bro apply tag... Combination then solve..
We have to submit our code to generate test case or test itself?
You can do submit either of them.
@@aniketmore8789 okay 👍 brother
Great sir
Cp karu jhaat bhar, videos banavu raat bhar🤡🌚
ICPC mates trolling each other
Thik hai bhai 🙇♀️
Sir please reply me