Hackerrank Polar Coordinates Solution
Polar coordinates are an alternative way of representing Cartesian coordinates or Complex Numbers.
A complex number
is completely determined by its real part and imaginary part .
Here, is the imaginary unit.
A polar coordinate ()
is completely determined by modulus and phase angle .
If we convert complex number to its polar