Codeforces Educational round 149 | D. Bracket Coloring | C. Best Binary String |B. Comparison String

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 24

  • @Acodedaily
    @Acodedaily  Рік тому +2

    Discord: discord.com/invite/H8TeFjvq6z

  • @mrinalmadhav8119
    @mrinalmadhav8119 Рік тому +3

    Keep it up , don't stop , u are doing a great work , very helpful to many people

  • @shri9229
    @shri9229 Рік тому +4

    today's contest was weirdly easssy, extremely easy.

  • @piyushraj5464
    @piyushraj5464 Рік тому +2

    Really helpful man. Hope to see more videos consistently from you.

    • @Acodedaily
      @Acodedaily  Рік тому +1

      I mostly do. Unless I am extremely busy.

  • @codingplanet6641
    @codingplanet6641 Рік тому +2

    why u didn't try to solve E , instead of recording ?

    • @Acodedaily
      @Acodedaily  Рік тому +3

      Felt like maths oriented. And I'm not strong at it.

  • @ajeetstationajeet
    @ajeetstationajeet Рік тому +1

    bro in second question i dont understand the curr you used inside the loop how it work shoudnt it work if i initialize it outside the loop

    • @Acodedaily
      @Acodedaily  Рік тому

      Initialising it inside the for loop ( for(init;;)) or outside won't matter actually

  • @rishukumarsingh3926
    @rishukumarsingh3926 Рік тому +1

    In Problem D, i was not able to observe that k lies between 1and 2😶

    • @Acodedaily
      @Acodedaily  Рік тому +1

      It would be a combination of type1 and type2 at max. So it won't need more than 2 colors

  • @virujthakur9260
    @virujthakur9260 Рік тому +1

    The explanation of D isn't very clear. U have to justify every observation as well.

    • @Acodedaily
      @Acodedaily  Рік тому

      Which part is unclear?

    • @virujthakur9260
      @virujthakur9260 Рік тому +1

      @@Acodedaily Observations unexplained to the viewers
      1. Why should there be only 2 colors at max to color the brackets?
      2. How to decide to use a stack to color the brackets in their respective colors?

    • @shri9229
      @shri9229 Рік тому

      @@virujthakur9260 I didn't use a stack, but I certainly released only 2 colors are sufficient.

    • @virujthakur9260
      @virujthakur9260 Рік тому +1

      @@shri9229 whenever you put out an explanation video, first list out all the observations you could make with their respective proofs and then explain the implementation of such observations.

    • @shri9229
      @shri9229 Рік тому

      @@virujthakur9260 it's his channel, he decides.

  • @danishraza3061
    @danishraza3061 Рік тому

    #include
    #define int long long
    using namespace std;
    signed main() {
    int t;
    cin>>t;
    while(t--)
    {
    int n;
    cin>>n;
    string s;
    cin>>s;
    int maxx=INT_MIN;
    for(int i=0;i

    • @nikhilsharma5595
      @nikhilsharma5595 Рік тому

      When j==i you are comparing s[i] with s[i] which make extra count as you already set count=1 and you no need min case after loop end you need max(maxx,cnt) then you will get right ans

    • @danishraza3061
      @danishraza3061 Рік тому

      @@nikhilsharma5595 Just decrementing the i counter before taking max worked. Thanks for the suggestion.

  • @Stupid-uc9mj
    @Stupid-uc9mj 10 місяців тому

    worst explanation