diff --git a/SortingCartesianProducts.cpp b/SortingCartesianProducts.cpp new file mode 100644 index 0000000..293b33c --- /dev/null +++ b/SortingCartesianProducts.cpp @@ -0,0 +1,11 @@ +//Expected Time Complexity :O(N log N) + + +#include +using namespace std; + +vector> sortCartesian(vector> v) +{ + sort(v.begin(), v.end()); + return v; +} \ No newline at end of file