Name the efficient algorithm offered by Python to insert element in a sorted sequence.
3 Likes
insort() function of bisect module in Python.
insort()
bisect
Answered By
When would you go for linear search in an array and why?
State condition(s) when binary search is applicable.
What is a list comprehension ?
What is a 2D list ?