Skip to content

Instantly share code, notes, and snippets.

@filipearray
Last active May 11, 2024 01:57
Show Gist options
  • Save filipearray/6fb08dd98f2c7c8ac48a9e865323396f to your computer and use it in GitHub Desktop.
Save filipearray/6fb08dd98f2c7c8ac48a9e865323396f to your computer and use it in GitHub Desktop.
Gopher's Gorgeous Lasagna
package lasagna
const OvenTime = 40
const layerPreparationTime = 2
// RemainingOvenTime retorna os minutos restantes com base nos minutos `atual` já no forno.
func RemainingOvenTime(actualMinutesInOven int) int {
remainingOvenTime := OvenTime - actualMinutesInOven
return remainingOvenTime
panic("RemainingOvenTime not implemented")
}
// PreparationTime calcula o tempo necessário para preparar a lasanha com base na quantidade de camadas.
func PreparationTime(numberOfLayers int) int {
preparationTime := layerPreparationTime * numberOfLayers
return preparationTime
panic("PreparationTime not implemented")
}
// ElapsedTime calcula o tempo decorrido cozinhando a lasanha. Este tempo inclui o tempo de preparação e o tempo que a lasanha está assando no forno.
func ElapsedTime(numberOfLayers, actualMinutesInOven int) int {
elapsedTime := (numberOfLayers * 2) + actualMinutesInOven
return elapsedTime
panic("ElapsedTime not implemented")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment