Results 1 to 4 of 4

Thread: Island Problem

  1. #1
    Expert Member
    Join Date
    Jan 2007
    Answers
    272

    Island Problem

    Suppose you got a treaure map..but its just a letter its written dere that on an island there are three things: a palm tree, a coconut tree and a cannon 1)start from cannon and start moving towards palm tree( count ur steps). Now turn left and move same number of steps and mark the point u reached as x 2)start from cannon and start moving towards coconut tree( count ur steps). Now turn right and move same number of steps and mark the point u reached as y treasure is hidden below the centre of line joining the point x and y now u went to the island and u saw that there is a palm tree, dere is a coconut tree but there is no cannon !!! how wud u find the treasure?? ps: u cant dig the whole island :d


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    249

    Re: Island Problem

    Hey smart coder the question need more information...
    I want to know Palm tree and cocunut tree are in one axis...
    My solution is I assumed the Cocunut tree and palm tree are in the same axis so the mid point is (a/2,a/2) (a is the distance between the palm tree and cocunut tree, assumed cocunut tree is at point (0,0) and palm tree is at point (a,0)). There may be other possibility also. It depends on which quadrant u r choosing.


  3. #3
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    Re: Island Problem

    hi smartcoder

    Even i think question needs more information.I feel you need to give some more information!

    bye

    :)
    NEVER SAY DIE.

  4. #4
    Expert Member
    Join Date
    Jan 2007
    Answers
    272

    Re: Island Problem

    The question doesnt need any more information...manoj has already solved that..kindly refer his solution!!!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact