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

ความคิดเห็น • 6

  • @ravishankarkumar6753
    @ravishankarkumar6753 8 หลายเดือนก่อน

    wow!

  • @mrcow6531
    @mrcow6531 8 หลายเดือนก่อน

    Nice

  • @ClipVault-w5u
    @ClipVault-w5u 8 หลายเดือนก่อน

    I am not understand the concept of while(t--){
    Please give me some hence about it
    }

    • @CodeLuv
      @CodeLuv  8 หลายเดือนก่อน

      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

    • @QUACKKKKKKKK
      @QUACKKKKKKKK 8 หลายเดือนก่อน +1

      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

  • @ravishankarkumar6753
    @ravishankarkumar6753 8 หลายเดือนก่อน

    maintain consistency bro , u will definitely grow