SHONKHO-NEEL's blog

By SHONKHO-NEEL, history, 2 months ago, In English

My approach to the problem was to calculate the angel of the line connecting two points with respect to the positive x-axis and then calculate is it's divisable by 45 as each line of the compass is at 45 degrees difference each.

It shows wrong answers for the third case,i cannot figure out where the extras are coming from. here is the code to the problem https://ideone.com/rPMEva

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by SHONKHO-NEEL (previous revision, new revision, compare).