From 6a8b2ebccc248895619dd6ece08b296330c2b7e0 Mon Sep 17 00:00:00 2001 From: harish-datla <36021808+harish-datla@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:48:29 +0530 Subject: [PATCH 1/2] feat:[practice] hello world example --- exercises/practice/hello-world/lib/hello_world.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/practice/hello-world/lib/hello_world.ex b/exercises/practice/hello-world/lib/hello_world.ex index bae289edf6..d4582392cd 100644 --- a/exercises/practice/hello-world/lib/hello_world.ex +++ b/exercises/practice/hello-world/lib/hello_world.ex @@ -4,6 +4,6 @@ defmodule HelloWorld do """ @spec hello :: String.t() def hello do - "Goodbye, Mars!" + "Hello, World!" end -end +end \ No newline at end of file From a36ad2b0050237083bf656987855b6cbcc148916 Mon Sep 17 00:00:00 2001 From: harish-datla <36021808+harish-datla@users.noreply.github.com> Date: Sat, 9 Mar 2024 13:20:39 +0530 Subject: [PATCH 2/2] feat: Update lasagna.ex --- exercises/concept/lasagna/lib/lasagna.ex | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/exercises/concept/lasagna/lib/lasagna.ex b/exercises/concept/lasagna/lib/lasagna.ex index 1cc18e8cce..aca84bc934 100644 --- a/exercises/concept/lasagna/lib/lasagna.ex +++ b/exercises/concept/lasagna/lib/lasagna.ex @@ -1,11 +1,7 @@ defmodule Lasagna do - # Please define the 'expected_minutes_in_oven/0' function - - # Please define the 'remaining_minutes_in_oven/1' function - - # Please define the 'preparation_time_in_minutes/1' function - - # Please define the 'total_time_in_minutes/2' function - - # Please define the 'alarm/0' function + def expected_minutes_in_oven(), do: 40 + def remaining_minutes_in_oven(time_spent), do: expected_minutes_in_oven() - time_spent + def preparation_time_in_minutes(layers), do: 2*layers + def total_time_in_minutes(layers,time_spent), do: preparation_time_in_minutes(layers) + time_spent + def alarm(), do: "Ding!" end