We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I've got a question: Suppose Jim is at (0,0), the mirror is at (0,2) and the wall goes from (0,1) to (1,1); now, can Jim cast the beam or not? It depends: If the wall is an open line segment (doesn't include the endpoints) the answer is YES, while if it's close, the answer is NO.
Do we know which case we're dealing with?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jim Beam
You are viewing a single comment's thread. Return to all comments →
I've got a question: Suppose Jim is at (0,0), the mirror is at (0,2) and the wall goes from (0,1) to (1,1); now, can Jim cast the beam or not? It depends: If the wall is an open line segment (doesn't include the endpoints) the answer is YES, while if it's close, the answer is NO.
Do we know which case we're dealing with?