Menu

Okay So In A Interview I Was Asked A Coding Question That Supoose There Is A Circular Ring With Outer Radius R1 And Inner Radius R2.In Input I Was Given Some T Points And I Have To Return That These Points Will Lie Inside The Ring Or Not.So How To Solve This Question Using Data Structure And Algorithm.In C++ Pls Provide Code I N C++ With Minimum Time And

Okay So In A Interview I Was Asked A Coding Question That Supoose There Is A Circular Ring With Outer Radius R1 And Inner Radius R2.In Input I Was Given Some T Points And I Have To Return That These Points Will Lie Inside The Ring Or Not.So How To Solve This Question Using Data Structure And Algorithm.In C++ Pls Provide Code I N C++ With Minimum Time And

Okay so in a interview i was asked a coding question that supoose there is a circular ring with outer radius r1
and inner radius r2.
in input i was given some t points and i have to return that these points will lie inside the ring or not.
so how to solve this question using data structure and algorithm.in c++ pls provide code i n c++ with minimum time and spce complexity. No chat gpt answer pls as they are wrong

Expert Answer

Step 1

Step 1: Defi…

OR