From 64047add51f933b323af0c96b1c8e675cf1fe66b Mon Sep 17 00:00:00 2001 From: "Prashant@8787" <88576717+Prashant8787@users.noreply.github.com> Date: Thu, 30 Sep 2021 09:56:33 +0530 Subject: [PATCH] Sort_the_array_0f_0's_1's_and2's.cpp --- .../Sort_the_array_0f_0's_1's_and2's.cpp | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Searching_and_Sorting/Sort_the_array_0f_0's_1's_and2's.cpp diff --git a/Searching_and_Sorting/Sort_the_array_0f_0's_1's_and2's.cpp b/Searching_and_Sorting/Sort_the_array_0f_0's_1's_and2's.cpp new file mode 100644 index 0000000..68df51d --- /dev/null +++ b/Searching_and_Sorting/Sort_the_array_0f_0's_1's_and2's.cpp @@ -0,0 +1,25 @@ +#include + +using namespace std; + +int main() + +{ int n; + + cin>>n; + + int a[n]; + + for(int i=0;i>a[i];} + + sort(a,a+n); + + for(int i=0;i