Can_Reach
A first-year student, came to your college. Being a good senior, you must tell him if it is possible to go from College Main Gate to Hostel for him. The college can be visualized on a 2D-plane. Suppose the College Main Gate is situated at origin i.e. at the coordinates $(0, 0)$ and the Hostel is situated at the coordinates $(x,y)$. As the first-year student wants to explore the college campus fu
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start