This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
your working at a government funded space and flight project...
Post Body

curb your interview question

Your working at a government funded space and flight rNd project. For marketing and promo purposes you have been tasked to create a mobile application. The functionality is as follows:

Part 1:

: to design a feature that utilizes the camera on the phone and their data connection / gps - and allows you to paint a picture with lines on the sky based on the flight patterns of planes around you. Specifically based on the flights that are :

• planes that are either flying above,behind,or in front of you currently (in transit) 

• -Or planes that have passed you and finished a flight cycle meaning they have departed and landed at their last stop\*

ie: as you point the camera around above you , you should see a web of different colored lines - or vectors - arching along over the sky. The lines all match the widths of their respective planes and are either

•  solid static lines for flights that have departed and landed 

• or lines growing in a single direction for flights that are still in transit 

Part 2:

Now Assuming each airport or airline had a different color for their drawn line - and you were looking at earth in a macro zoomed out scale from space -

How would you write a algorithm to rank all the airlines, ranked by highest surface area covered around earth with drawn lines , to lowest surface area covered?

*note colors do not change for layovers , the last stop is where the flight ends, not when the plane reaches a airport : So a flight starting in Seattle that stops in Dubai , on the way to India - keeps the same color from stop 1 to finish*

How would you write a algorithm to rank all the airlines, by the number of lines drawn? (A line is equal to the distance from when the plane takes off at a airport to when it lands at a airport - then a second line begins after it takes off again )

—————————————————————-

BONUS: same algorithm you made with the plane app but a slight twist:

Create a algorithm that :

1.  Draws the moons orbit around around earth instead of plane flights 

2.  Tells you the amount time it takes for the moon to completely cover up earths surface area by the lines left from its orbital pattern 

3.  And the number of orbital trips made by the moon

Author
Account Strength
50%
Account Age
5 years
Verified Email
No
Verified Flair
No
Total Karma
133
Link Karma
43
Comment Karma
90
Profile updated: 4 days ago
Posts updated: 1 week ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago