-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
In Data types/structures, when comparing list and dictionary, the functions do not give the same result.
So, we can not compare the execution time.
There is a simple fix. Change this
| " if needle in haystack_dict: # time O(1) within dict\n", |
to:
" if needle in haystack_dict.values(): # time O(1) within dict\n",
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels