From b8ce9386fffba2b9c16edc9928bc0bb37f7f62e6 Mon Sep 17 00:00:00 2001 From: Devansh Dwivedi <74648201+bottercode@users.noreply.github.com> Date: Sat, 30 Oct 2021 18:59:21 +0530 Subject: [PATCH] Add files via upload --- SortingCartesianProducts.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 SortingCartesianProducts.cpp 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