find-the-prefix-common-array-of-two-arrays 1.0.0
Find the Prefix Common Array of Two Arrays
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 32 of file main.cpp.

33{
34 vector<int> A = {1,3,2,4};
35 vector<int> B = {3,1,2,4};
36 vector<int> output = Solution().findThePrefixCommonArray(A, B);
37 for (int el: output)
38 cout << el << " ";
39 cout << endl;
40 return 0;
41}
vector< int > findThePrefixCommonArray(vector< int > &A, vector< int > &B)
Definition main.cpp:8

References Solution::findThePrefixCommonArray().