in Algorithms retagged by
877 views
0 votes
0 votes

in Algorithms retagged by
877 views

4 Comments

Well explanation bro @shaikmasthan
0
0
we can't apply binary search, due to array is not sort.

But we know that n is fixed ===> apply counting sort ==> O(n)

then again with a for loop, we can know which is missing ===> O(n)

O(n)+O(n) = O(n)
0
0
0
0

Please log in or register to answer this question.

Related questions