Problem D | Blue-Red Permutation | CodeForces Round 753 Div 3 | Yash Dwivedi

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

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

  • @rajakumar9956
    @rajakumar9956 3 ปีที่แล้ว +2

    Excellent explanation, I was searching for hrs, Glad I finally found urs..Keep up the good work

    • @codeEra1
      @codeEra1  3 ปีที่แล้ว

      Thanks Rajat we will bring more quality videos in future stay tuned!!

  • @kartikeyasrivastava6723
    @kartikeyasrivastava6723 3 ปีที่แล้ว

    Thanks for the video 🙏🙏.

  • @shahidafridi2406
    @shahidafridi2406 3 ปีที่แล้ว

    you said that we can choose numbers from any vector blue or red to make 1 to n. But this logic will fail in a case:
    2
    1 1
    RB
    here, red=1 and blue = 1 in blue and red vector.......if we choose first number from red vector your logic will fail...we must have to choose from blue vector to get ac........isn't it?

  • @sanheensethi9054
    @sanheensethi9054 3 ปีที่แล้ว +1

    sir ye

    • @yash.dwivedi
      @yash.dwivedi 3 ปีที่แล้ว

      In case of blue we need to check if the i-th blue number is less than

    • @shahidafridi2406
      @shahidafridi2406 3 ปีที่แล้ว

      @@yash.dwivedi he said that we can choose numbers from any vector blue or red to make 1 to n. But this logic will fail in a case:
      2
      1 1
      RB
      here, red=1 and blue = 1 in blue and red vector.......if we choose first number from red vector your logic will fail...we must have to choose from blue vector to get ac........isn't it?