Google Phone Interview 45 minutes
Anonymous User
664

Given no of points in a 2 D Plance and Rule sets like A direction(N|S|NE|SW|SE) B . means A is in the north of B or A is in the south of B.
Given no of rule sets . Return whether is it posssible to have the points in the 2 D plane.

1 N 2
2 N 3
3 S 1

If this is given

The solution exist.

1
2
3

Bad Case will be when we add one more rule 1 S 3 that will be a false .

Comments (2)