Home Uncategorized


  • Binary search is used to find an element among many other elements. The binary search method is faster than the linear search method. Further, the array members must be in ascending order when using binary search. If you have an unsorted array, you can use the Arrays.sort(arr) method to sort it.

  • The collection module in Python has different containers. A container is an object that holds a number of other objects and provides a way to access the objects contained in them. The container then iterates over the items. Python examples of the built-in containers are ‘Tuples,’ ‘Lists,’ ‘sets,’ and ‘Dictionaries .’This article has been tailored to help you understand the built-in containers in the python collection.