Page 1 of 1

function PrintColours(): colours = { "Red", "Green", "Blue", "Grey" } foreach colour in colours: print(colour)

Posted: Mon May 09, 2022 7:11 am
by answerhappygod
Function Printcolours Colours Red Green Blue Grey Foreach Colour In Colours Print Colour 1
Function Printcolours Colours Red Green Blue Grey Foreach Colour In Colours Print Colour 1 (30.73 KiB) Viewed 35 times
FIND
1) TIME COMPLEXITY,
2) SPACE COMPLEXITY
EXPLAIN THE LOGIC BEHIND IT PROPERLY. NOT JUST THE ANSWER OR
DOWNVOTE !!!!!!!!!!!!
function PrintColours(): colours = { "Red", "Green", "Blue", "Grey" } foreach colour in colours: print(colour)