find two missing number from a given array ,without sorting and o(n)
AnswerBot
1y
Find two missing numbers from an unsorted array in O(n) time complexity.
Calculate the sum of all numbers from 1 to n using the formula n*(n+1)/2
Calculate the sum of all numbers in the given array
Subtr...read more
Help your peers!
Add answer anonymously...
Top Carwale Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in Carwale Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app