Leetcode Weekly Contest 424 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 29

  • @TLE_Eliminators
    @TLE_Eliminators  Місяць тому

    TLE 12.0 - our Competitive Programming course TLE 12.0 is live!
    Enrol now at www.tle-eliminators.com
    Please fill the Feedback form for PCD: forms.gle/7JimWXwwMxvtiZYU7

  • @iams04
    @iams04 Місяць тому +7

    The algo for the 2nd problem is really something.... thanks

  • @venketeshpanda5183
    @venketeshpanda5183 Місяць тому +5

    Got to learn something new today! thanks Viraj and TLE Eliminators!

  • @JIGARSINGTHAKOR-yy6qp
    @JIGARSINGTHAKOR-yy6qp Місяць тому +11

    Please Upload Solution of icpc preliminary

  • @shristisrivastava7054
    @shristisrivastava7054 Місяць тому +1

    Very clear explanation.Thanks for making this video

  • @advaithmahendrakar
    @advaithmahendrakar Місяць тому +5

    Sir How did u come up with 4th solution...So complexx ?? What all u practiced before?

  • @nikhilprakash729
    @nikhilprakash729 Місяць тому +2

    Great Solution Bhaiya
    Specially for the last one.......

  • @glitchGOAT464
    @glitchGOAT464 Місяць тому +3

    Great Explanation

  • @grimreaper4277
    @grimreaper4277 Місяць тому +1

    Loved the Explaination

  • @garv1202
    @garv1202 Місяць тому +1

    Where's div3 and codechef editorial?

  • @KNR_06_10
    @KNR_06_10 Місяць тому +1

    Pls upload codeshef editorial

  • @influxiorplays4151
    @influxiorplays4151 Місяць тому +1

    i was able to solve the first two exactly like you in the contest but for the third i was stuck at memory limit exceed, anyways great explanation thanks

  • @AakashKumar-vf3dh
    @AakashKumar-vf3dh Місяць тому +3

    The code for 4th problem is now failing for this testcase, so something wrong with the approach?
    [2,-1,4,-1,-1,6]
    Output:
    2
    Expected:
    1

    • @VirajChandra
      @VirajChandra Місяць тому

      Updated the problem in description.

  • @subhajyotisaha1020
    @subhajyotisaha1020 Місяць тому +1

    The last problem solution is not getting accepted in LeetCode.

    • @VirajChandra
      @VirajChandra Місяць тому

      Updated the problem in description.

  • @certain3602
    @certain3602 Місяць тому +1

    good explanatiohn

  • @ridhamanand8519
    @ridhamanand8519 Місяць тому +1

    Will this sweep line work if we have to take xor rather than decrementing.

  • @KNR_06_10
    @KNR_06_10 Місяць тому

    Pls upload solutions for Codeforces 988 div 3

  • @monilcharola6873
    @monilcharola6873 Місяць тому +1

    Awesome video!
    Actually, I was asked the 2nd question of this contest in one of the interview a month back. And the 3rd question was asked as a follow up. I was able to get to the solution for both the questions.
    I have 1 doubt, my interviewer was asking me to get to a TC O(N) and SC O(1) solution for the 2nd question of the interview. Is that really possible? Let's say using the input would not be counted as extra space, but still I am unable to find such a solution.
    in the interview I just said that instead of incrementing the left boundary and decrementing the right boundary in diff array, what if we do the opposite, we decrement the left and increment the right boundary and after taking the prefix sum, we check if each element is

    • @VirajChandra
      @VirajChandra Місяць тому

      Not sure if LC 3rd problem can be done better than O(nlogn)

    • @Ayush37262
      @Ayush37262 Місяць тому

      Yes, it is possible.

  • @Ethical-Boy-No-1
    @Ethical-Boy-No-1 Місяць тому +1

    There is a fault in your code for the 4th question . Leetcode added one more edge case "2,-1,4,-1,-1,6" and will be 1 and sir your code gives us 2 .

    • @VirajChandra
      @VirajChandra Місяць тому

      Updated the problem in description.

  • @talwaarkidhaar
    @talwaarkidhaar Місяць тому +1

    you are prioritizing setting X based on an assumption that nums array is in ascending order?
    But how is it working for random array, with no order?