diff --git a/rec_sort.cpp b/rec_sort.cpp new file mode 100644 index 00000000..41bc9a33 --- /dev/null +++ b/rec_sort.cpp @@ -0,0 +1,39 @@ +#include +using namespace std; + + +bool isSorted(int*a ,int n) +{ + if(n==1) + { + return true; + + } + if(a[0]>N; //no_of_elements + for(i=0; i>arr[i]; + + } + if(isSorted(arr,N)){ + cout<<"True"; + + } + else{ + cout<<"False"; + } + return 0; +}