
Asked in Wipro
What is time complexity of bubble sort? Can we do anything to reduce time in bubble sort?

AnswerBot
2y
Bubble sort has a time complexity of O(n^2). It can be optimized by adding a flag to check if any swaps were made.
Bubble sort compares adjacent elements and swaps them if they are in the wrong order.
I...read more
Help your peers!
Add answer anonymously...
Top Project Engineer Interview Questions Asked at Wipro
Q. Explain the logic behind determining if a number is prime.
Q. What is the need for using Salesforce?
Q. Why have you not included C and C++ in your resume, considering you are a comput...read more
Interview Questions Asked to Project Engineer at Other Companies
Top Skill-Based Questions for Wipro Project Engineer
Algorithms Interview Questions and Answers
250 Questions
Data Structures Interview Questions and Answers
250 Questions
Networking Interview Questions and Answers
250 Questions
Java Interview Questions and Answers
250 Questions
SQL Interview Questions and Answers
250 Questions
C++ Interview Questions and Answers
150 Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

