add some passed codes
This commit is contained in:
26
2661-231201/main.cpp
Normal file
26
2661-231201/main.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include<stdcpp.h>
|
||||
using namespace std;
|
||||
|
||||
class Solution{
|
||||
public:
|
||||
int firstCompleteIndex(vector<int>& arr, vector<vector<int>>& mat) {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
int main(){
|
||||
Solution sol;
|
||||
|
||||
vector<int> ex1_arr = {1,3,4,2};
|
||||
vector<int> ex1_row1 = {1,4};
|
||||
vector<int> ex1_row2 = {2,3};
|
||||
vector<vector<int> > ex1_mat = {ex1_row1,ex1_row2};
|
||||
sol.firstCompleteIndex(ex1_arr, ex1_mat);
|
||||
|
||||
vector<int> ex2_arr = {2,8,7,4,1,3,5,6,9};
|
||||
vector<int> ex2_row1 = {3,2,5};
|
||||
vector<int> ex2_row2 = {1,4,6};
|
||||
vector<int> ex2_row3 = {8,7,9};
|
||||
vector<vector<int> > ex2_mat = {ex2_row1,ex2_row2,ex2_row3};
|
||||
sol.firstCompleteIndex(ex2_arr, ex2_mat);
|
||||
}
|
Reference in New Issue
Block a user