Tech Mahindra interview question

Explain bubble sort and binary search with explanations