From 67b6a1406cdaaeb6f707a130167bccc57c42b5de Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Tue, 25 Jul 2023 17:32:01 +0600 Subject: [PATCH] change to is_sorted function --- 1853A Desorting/1853A.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/1853A Desorting/1853A.cpp b/1853A Desorting/1853A.cpp index 82f03e1..bd653dc 100644 --- a/1853A Desorting/1853A.cpp +++ b/1853A Desorting/1853A.cpp @@ -14,16 +14,8 @@ void solve() cin>>x; v.push_back(x); } - bool unsorted=0; - for(int i=1; i