Answer the following question by selecting the matching BIG-O notation for the following array based Listmethod

Options:

1. max

2. peek

3. clean

4. min

5. _getitem_                                                                             

6. min                                                                                  Select from these Options

7. _linear_search                                                                     1. O(1)

8. find                                                                                      2. O(n)

9. remove                                                                                3.O(lg n)

10. remove_many                                                                    4. O(n log n)

11. identical                                                                             5. O(n^2)

12. intersection

13. is_empty

14. index

15. contains

16. insert

17. __len__

18. count



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *