Hi,
Recently I had been interviewed internationally!!!!! It would be very much helpful if you can also try to solve this "things".
Please first examine the below image:
http://www.uploadforever.net/download.php?img=575 Figure 1 shows a set of nodes that are labeled from A to J. The position of each node can be defined by the x, y coordinate system. The dotted segments joining the nodes A, B, E, F, I and J, shows a possible path from A to J through the nodes B, E, F and I.
1. Define a class that will represent each of the following: i. a node
ii. a segment, which consists of two nodes
iii. a path, which consists of at least three segments
If anyone can answer this please:
Thanks