diff --git a/C++/find-missing-and-repeated-values.cpp b/C++/find-missing-and-repeated-values.cpp new file mode 100644 index 0000000..2b84fed --- /dev/null +++ b/C++/find-missing-and-repeated-values.cpp @@ -0,0 +1,26 @@ +class Solution { +public: + vector findMissingAndRepeatedValues(vector>& grid) { + int n = grid.size()*grid.size(); + int *nums = new int[n]; + for(int i=0; i res = {-1, -1}; + + for(int i=0; i