added new file in algorithm-cplusplus-arrays folder named repeat-and-missing-number

pull/878/head
tanishagarg1803 2022-10-02 11:03:27 +05:30
parent 4529e15520
commit 5edd9e39cf
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ Then again traverse the substitute array starting from index 1 to N.
If you find any index value greater than 1 that is repeating element A.
If you find any index value = 0 then that is the missing element B.
Time Complexity: O(N)
Space Complexity: O(N)
*/
#include <bits/stdc++.h>