How to wtite a higher-order function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to wtite a higher-order function

Write a higher-order function plotRuntimes that takes as a parameter a function func, and a list of lists that will be inputs for func. Your function plotRuntimes should call func on each of the provided inputs, and record the running time.

17th Feb 2020, 9:04 AM
Chenxin Xue
5 Answers
+ 3
Is this a challenge or homework?
17th Feb 2020, 9:21 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
I don't want to be rude, but Q&A is not the place for challenges. Louis has a post which invites challenges. I will try to find it & post it here for you.
17th Feb 2020, 9:30 AM
Rik Wittkopp
Rik Wittkopp - avatar
17th Feb 2020, 9:52 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
This is a challenge o
17th Feb 2020, 9:27 AM
Chenxin Xue
+ 1
Rik Wittkopp :Chenxin Xue is new here I guess 🤔
17th Feb 2020, 10:44 AM
karangreat
karangreat - avatar