Heavy Intervals | Codeforces 1909C Solution | Pinely Round 3 (Div. 1 + Div. 2) | English

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 32

  • @dimpug7571
    @dimpug7571 10 месяцев назад +11

    I wonder bow beautifully these solutions and problems are designed.its really amazing to link this problem to parenthesis balance. And you explained it in a lit way Santa Sreejith 🎉

    • @codingdynamo
      @codingdynamo  10 месяцев назад +2

      Santa Sreejith sounds so cool 😊
      Thanks much 🙌

    • @priyanshkumar17
      @priyanshkumar17 10 месяцев назад +1

      Yeah, the linkage to the balanced paranthesis problem was just awesome.

    • @dimpug7571
      @dimpug7571 10 месяцев назад +1

      @@codingdynamo ❤️

  • @vineetkumar2899
    @vineetkumar2899 10 месяцев назад

    Awesome explanations .Thanks Bro.💌

  • @harshsinghdeeplearning696
    @harshsinghdeeplearning696 10 месяцев назад +1

    I HAVE STARTED CP AROUND 10 DAYS AGO BUT I AM NOT ABLE TO SOLVE EVEN A SINGLE PROBLEM IN A CONTEST

    • @priyanshkumar17
      @priyanshkumar17 10 месяцев назад +1

      Same here. I also started a week ago, attempted 4-5 contests, but only solved a single problem in all.

    • @codingdynamo
      @codingdynamo  10 месяцев назад

      Will take time, once you get a hang on it. You will start solving.

  • @Omar-Farhat
    @Omar-Farhat 10 месяцев назад

    thanks

  • @nkvs1248
    @nkvs1248 10 месяцев назад

    Split Plus K we want this also.....

  • @OnlyAyushAgarwal
    @OnlyAyushAgarwal 10 месяцев назад +1

    Nice 😇

  • @priyanshkumar17
    @priyanshkumar17 10 месяцев назад +1

    Sir, you never check if the stack is already empty when you pop it/access the top. Won't it give runtime error ? (Like in Check Balanced Bracket Problem)

    • @codingdynamo
      @codingdynamo  10 месяцев назад

      Good question, as per the constraints we are very sure that there is always an l < r. So it won't go for runtime error.

    • @priyanshkumar17
      @priyanshkumar17 10 месяцев назад

      @@codingdynamo Ah, yes. Thanks Sir :)

    • @priyanshkumar17
      @priyanshkumar17 10 месяцев назад

      @@codingdynamo Sir, will you bring the solutions to D onwards ?

  • @mansisethi8127
    @mansisethi8127 10 месяцев назад

    I copied the exact same code and it gave me runtime error and I can't figure out why

    • @codingdynamo
      @codingdynamo  10 месяцев назад

      Share the submission link

  • @AnjaneyaDwivedi
    @AnjaneyaDwivedi 10 месяцев назад +1

    bro, sometimes i keep thinking but the intution doesn't strike and at last i have to see the solution. How can it happen that i am able to solve questions myself??

    • @codingdynamo
      @codingdynamo  10 месяцев назад

      Everyone faces it, comes with practice

    • @codingdynamo
      @codingdynamo  10 месяцев назад +1

      No worries, eventually with constantly giving contests and understanding other's solutions, u will get it.

  • @anooshkaa
    @anooshkaa 10 месяцев назад

    did you do 4th? if so please make a video. thanks!

    • @codingdynamo
      @codingdynamo  10 месяцев назад

      Sorry, unable to solve it

  • @suharshsharma6764
    @suharshsharma6764 10 месяцев назад

    but that will check that if the stack is empty (in a case where the least value is the r value that come in the first element of the stack then what will happen please someone explain )

    • @codingdynamo
      @codingdynamo  10 месяцев назад

      That case would never happen, as per the constraints, there always exists a 'l' which is less than 'r'. So we are sure about it.

  • @bradhawk901
    @bradhawk901 10 месяцев назад +1

    i which year are you studying sreejith bro?

    • @codingdynamo
      @codingdynamo  10 месяцев назад +1

      I am not a student, I am working for almost 2.5 years 🙂

  • @shashantkumar2689
    @shashantkumar2689 10 месяцев назад

    Thought the same but was not able to implement it because I was thinking about how to identify which is from the left and which is from right vector.

    • @codingdynamo
      @codingdynamo  10 месяцев назад +1

      So next time, you gonna code it, if a similar problem comes :)

    • @priyanshkumar17
      @priyanshkumar17 10 месяцев назад +1

      Yes, thanks a lot@@codingdynamo

  • @hardikjain-brb
    @hardikjain-brb 10 месяцев назад +1

    Nice cap bruhhh>!