Page 1 of 1

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

Posted: Mon May 09, 2022 7:01 am
by answerhappygod
Function Printcolours Colours Red Green Blue Grey Foreach Colour In Colours Print Colour Which Of 1
Function Printcolours Colours Red Green Blue Grey Foreach Colour In Colours Print Colour Which Of 1 (21.89 KiB) Viewed 34 times
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) Which of the below answers describes the time complexity of the above code most accurately? Pick ONE option O(1) O(logn) O(n) o Oin²