From d4dd3903d1c34aa14c1ca83b62b65bc7d2bcf11a Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Sat, 9 Dec 2023 18:42:13 +0600 Subject: [PATCH] updated reverse loop logic --- Template/CPTemp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Template/CPTemp.cpp b/Template/CPTemp.cpp index 21be228..cb21d22 100644 --- a/Template/CPTemp.cpp +++ b/Template/CPTemp.cpp @@ -18,7 +18,7 @@ using namespace std; #define fr(i, a, b) for(int i=a; ib; --i) -#define nf(i, n) for(int i=n; i>0; --i) +#define nf(i, n) for(int i=n-1; i>=0; --i) // STLs #define PII pair