Taxi Making Sharp Turns
CodeChefOpen on judge ↗
Taxis of Kharagpur are famous for making sharp turns. You are given the coordinates where a particular taxi was on a 2-D plane at **N** different moments: $(x_1, y_1)$, $(x_2, y_2)$, ..., $(x_N, y_N)$. In between these coordinates, the taxi moves on a straight line. A turn at the i-th (2 ≤ i ≤ **N**-1) coordinate is said to be a *sharp* turn if the angle by which it turns at Point B = $(x_i, y_i)$
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