B. Swap and Delete || Educational Codeforces Round 160 || Div 2 || Solution Explain
ฝัง
- เผยแพร่เมื่อ 19 ก.ย. 2024
- Question: codeforces.com...
code: onlinegdb.com/...
code: codeforces.com...
#codechef #codeforces #codeforcessolutions #leetcodesolution
#competitive #programming
#dsa #cpp #java #160
#educationalround
wow!
Nice
I am not understand the concept of while(t--){
Please give me some hence about it
}
there is a test cases,
I used while loop where in each iteration t value reduce and when it become zero the loop will break
it might be a little late but here's your explanation the T is the number of test cases we are going to run the loop for and while(t--) means while t-- is true that means while t-- is not equal to 0 and the t-- basically means everytime we run that check statement it will decrement t by 1 so if the value of t is 3 and the code is something like while(t--)cout
maintain consistency bro , u will definitely grow