Enumerate exercises and add 'Solution' headings
This commit is contained in:
parent
37c911fa60
commit
eecd8f6dc9
@ -1,5 +1,7 @@
|
|||||||
|
-- Solution --------------------------------------------------------------------
|
||||||
|
|
||||||
function leap_year(year)
|
function leap_year(year)
|
||||||
-- Your solution here
|
-- Your implementation here
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Tests -----------------------------------------------------------------------
|
-- Tests -----------------------------------------------------------------------
|
@ -1,3 +1,5 @@
|
|||||||
|
-- Solution --------------------------------------------------------------------
|
||||||
|
|
||||||
-- Give the colours whatever values are convenient
|
-- Give the colours whatever values are convenient
|
||||||
black = undefined
|
black = undefined
|
||||||
brown = undefined
|
brown = undefined
|
||||||
@ -13,7 +15,7 @@ gold = undefined
|
|||||||
silver = undefined
|
silver = undefined
|
||||||
|
|
||||||
function decode_resistance(colours)
|
function decode_resistance(colours)
|
||||||
-- Your solution here
|
-- Your implementation here
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Tests -----------------------------------------------------------------------
|
-- Tests -----------------------------------------------------------------------
|
@ -1,5 +1,7 @@
|
|||||||
|
-- Solution --------------------------------------------------------------------
|
||||||
|
|
||||||
function hamming_distance(str1, str2)
|
function hamming_distance(str1, str2)
|
||||||
-- Your solution here
|
-- Your implementation here
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Tests -----------------------------------------------------------------------
|
-- Tests -----------------------------------------------------------------------
|
Loading…
x
Reference in New Issue
Block a user