One Mile on the Globe

How many points are there on the globe where by walking one mile south, one mile east and one mile north you reach the place where you started?

  • Case 1 : Answer is a function of N. Output it with N with multipliers or divisor numbers following N. For example, N * 2, N / 2, N * 3 / 4.
  • Case 2 : Answer is a integer. Just put the number without any decimal places if its an integer. If the answer is Infinity, output Infinity.
  • Case 3 : Floating point number. Round it off to 2 decimal places and output it as I.xx where I is the integer part of the answer, and xx are 2 decimal digits after rounding off.

Feel free to get in touch with us if you have any questions
Spaces do not matter.

Sign Up
to access hints and editorial solutions for One Mile on the Globe
8627 successful submissions.
Asked In:
  • Microsoft
Click here to start solving coding interview questions