Skip to content

tucows/ymodari-interview-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sre-interview-exercise

You are an engineering member of Mission Control and your astronauts need to replace a critical piece of equipment at the edge of the galaxy!

The plan is to send this piece of equipment in a spacecraft using a series of wormholes. It is your job to calculate the total amount of fuel required for the spacecraft to reach the astronauts through all wormholes.

You are given a list of astronomical units between each wormhole as your input (input.txt).

The fuel required is based on the distance between wormholes. Specifically, to find the total fuel required to reach the astronauts, take each astronomical unit, divide by three, round down, and subtract 2.

Part 1

What is the sum of the fuel requirements for all astronomical units between wormholes?


Please open a pull request on this repo with your solution for part 1 (written in any language of your preference). Part 2 is to be completed during the PR process.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages