TLE Eliminators - by Priyansh
TLE Eliminators - by Priyansh
  • 300
  • 1 377 300
Leetcode Biweekly Contest 144 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
TLE 12.0 - our Competitive Programming course TLE 12.0 is live!
Enrol now at www.tle-eliminators.com/?referralCode=F0362968
Here are the video solutions in the form of a post-contest discussion for Leetcode Biweekly Contest 144. We hope this will be useful for you in up-solving this contest.
Solution Codes:
Stone Removal Game leetcode.com/problems/stone-removal-game/submissions/1461440472/
Shift Distance Between Two Strings leetcode.com/problems/shift-distance-between-two-strings/submissions/1461441359/
Zero Array Transformation III leetcode.com/problems/zero-array-transformation-iii/submissions/1461441206/
Find the Maximum Number of Fruits Collected leetcode.com/problems/find-the-maximum-number-of-fruits-collected/submissions/1461441103/
Be sure to check out TLE Eliminators.
Website: www.tle-eliminators.com/
Instagram: tle_eliminators
Linkedin: www.linkedin.com/company/tle-eliminators
Twitter: TLE_Eliminators
TLE Community Discord Server: discord.gg/xmTtS4XdJw
Timestamps:-
00:00 Stone Removal Game
08:55 Shift Distance Between Two Strings
46:28 Zero Array Transformation III
1:17:48 Find the Maximum Number of Fruits Collected
Переглядів: 1 223

Відео

Leetcode Weekly Contest 424 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
Переглядів 4,1 тис.День тому
TLE 12.0 - our Competitive Programming course TLE 12.0 is live! Enrol now at www.tle-eliminators.com/login?referralCode=F0362968 Here are the video solutions for problems A, B, C, D of Leetcode Weekly Contest 424. We hope this will be useful for you in up-solving this contest. 📢Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet Solution Codes...
Codeforces Round 987 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Переглядів 3,9 тис.День тому
TLE 12.0 - our Competitive Programming course TLE 12.0 is live! Enrol now at www.tle-eliminators.com/login?referralCode=60B8E114 Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E of Codeforces Round 987. The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solvin...
Codechef Starters 160 | Video Solutions - A to E | by Raghav Goel | TLE Eliminators
Переглядів 3,2 тис.14 днів тому
TLE 12.0 - our Competitive Programming course TLE 12.0 is live! Enrol now at www.tle-eliminators.com Here are the video solutions in the form of a post-contest discussion for problems A, B, C, E of Codechef Starters 160 (Div 2). The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. 📢Check...
Codeforces Round 986 (Div 2) | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Переглядів 4 тис.14 днів тому
TLE 12.0 - our Competitive Programming course TLE 12.0 is live! Enrol now at www.tle-eliminators.com Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Codeforces Round 986. The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. Solution Codes:...
Codeforces Round 985 (Div 1 + 2) | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators
Переглядів 2,5 тис.14 днів тому
TLE 12.0 - our Competitive Programming course TLE 12.0 is live! Enrol now at www.tle-eliminators.com Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E of Codeforces Round 985. The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. Solution Cod...
Codechef Starters 159 | Video Solutions - A to H | by Raghav Goel | TLE Eliminators
Переглядів 3,9 тис.21 день тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E, F, G, H of Codechef Starters 159 (Div 2). The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. 📢Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com...
Codeforces Round 984 (Div 3) | Video Solutions - A to G | by Abhinav Kumar | TLE Eliminators
Переглядів 6 тис.21 день тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E, F, G of Codeforces Round 984. The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet Sol...
Codeforces Round 983 (Div 2) | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
Переглядів 6 тис.21 день тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Codeforces Round 983. The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet Solution Cod...
Educational Codeforces Round 171 | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Переглядів 4,9 тис.28 днів тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Educational Codeforces Round 171. The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. 📢Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet...
Codeforces Global Round 27 | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Переглядів 3,8 тис.Місяць тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Codeforces Global Round 27. The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest. 📢Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet Solut...
Codeforces Round 982 (Div 2) | Video Solutions - A to D1 | by Harsh Gupta | TLE Eliminators
Переглядів 4,8 тис.Місяць тому
Codeforces Round 982 (Div 2) | Video Solutions - A to D1 | by Harsh Gupta | TLE Eliminators
Codeforces Round 981 (Div 3) | Video Solutions - A to F | by Abhinav Kumar | TLE Eliminators
Переглядів 7 тис.Місяць тому
Codeforces Round 981 (Div 3) | Video Solutions - A to F | by Abhinav Kumar | TLE Eliminators
Codechef Starters 157 | Video Solutions - A to G | by Raghav Goel | TLE Eliminators
Переглядів 4,1 тис.Місяць тому
Codechef Starters 157 | Video Solutions - A to G | by Raghav Goel | TLE Eliminators
Everything about ICPC India Regionals 2024 | Gaurish Baliga | TLE Eliminators
Переглядів 5 тис.Місяць тому
Everything about ICPC India Regionals 2024 | Gaurish Baliga | TLE Eliminators
Codeforces Round 980 (Div 2) | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
Переглядів 8 тис.Місяць тому
Codeforces Round 980 (Div 2) | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
Codechef Starters 156 | Video Solutions - A to H | by Raghav Goel | TLE Eliminators
Переглядів 4,9 тис.Місяць тому
Codechef Starters 156 | Video Solutions - A to H | by Raghav Goel | TLE Eliminators
Educational Codeforces Round 170 | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators
Переглядів 6 тис.Місяць тому
Educational Codeforces Round 170 | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators
Codeforces Round 978 (Div 2) | Video Solutions - A to D1 | by Gaurish Baliga | TLE Eliminators
Переглядів 4,8 тис.Місяць тому
Codeforces Round 978 (Div 2) | Video Solutions - A to D1 | by Gaurish Baliga | TLE Eliminators
Codechef Starters 155 | Video Solutions - A to F | by Harsh Gupta | TLE Eliminators
Переглядів 4,2 тис.Місяць тому
Codechef Starters 155 | Video Solutions - A to F | by Harsh Gupta | TLE Eliminators
Codeforces Round 977 (Div 2) | Video Solutions - A to C1 | by Harsh Gupta | TLE Eliminators
Переглядів 5 тис.Місяць тому
Codeforces Round 977 (Div 2) | Video Solutions - A to C1 | by Harsh Gupta | TLE Eliminators
Codechef Starters 154 | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
Переглядів 4 тис.Місяць тому
Codechef Starters 154 | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
Codeforces Round 976 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Переглядів 8 тис.Місяць тому
Codeforces Round 976 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Codeforces Round 975 (Div 2) | Video Solutions - A to C | by Harsh Gupta | TLE Eliminators
Переглядів 6 тис.2 місяці тому
Codeforces Round 975 (Div 2) | Video Solutions - A to C | by Harsh Gupta | TLE Eliminators
Codechef Starters 153 | Video Solutions - A to D | by Harsh Gupta | TLE Eliminators
Переглядів 3,4 тис.2 місяці тому
Codechef Starters 153 | Video Solutions - A to D | by Harsh Gupta | TLE Eliminators
Leetcode Weekly Contest 416 | Video Solutions - A to D | by Raghav Goel | TLE Eliminators
Переглядів 4,4 тис.2 місяці тому
Leetcode Weekly Contest 416 | Video Solutions - A to D | by Raghav Goel | TLE Eliminators
Codeforces Round 974 (Div 3) | Video Solutions - A to F | by Abhinav Kumar | TLE Eliminators
Переглядів 7 тис.2 місяці тому
Codeforces Round 974 (Div 3) | Video Solutions - A to F | by Abhinav Kumar | TLE Eliminators
Meta Hacker Cup 2024 || Everything You Need to Know by Anikate Koul || TLE Eliminators
Переглядів 6 тис.2 місяці тому
Meta Hacker Cup 2024 || Everything You Need to Know by Anikate Koul || TLE Eliminators
Codeforces Round 973 (Div 2) | Video Solutions - A to D | by Raghav Goel | TLE Eliminators
Переглядів 6 тис.2 місяці тому
Codeforces Round 973 (Div 2) | Video Solutions - A to D | by Raghav Goel | TLE Eliminators
Codechef Starters 152 | Video Solutions - A to D2 | by Abhinav Kumar | TLE Eliminators
Переглядів 2,9 тис.2 місяці тому
Codechef Starters 152 | Video Solutions - A to D2 | by Abhinav Kumar | TLE Eliminators

КОМЕНТАРІ

  • @-GaneshJagannadam
    @-GaneshJagannadam 9 годин тому

    Thanks for the video solution. The above code for Problern C was failing the test case when N = 7 and queries = [1, 4], [1,3], [1,5 The expected output is [4, 4, 3], but the actual output is [4, 4, 2]. I figured out what was going wrong with that solution. We were also counting the already deleted nodes we were only supposed to count the non deleted nodes between queries[i][0] and queries[i][1]. We have to just add one condition while counting which is make sure that it was not deleted. Thanks to TLE Eleminators, I really enjoy watching your videos.

  • @noname-te8nn
    @noname-te8nn День тому

    for problem c , there will be z which maybe fraction of y isn't it? , and after a certain number there will be always a possibility of y%(x xor y)==0 , as msb of both will be equal , isn't it?

  • @MadaraUchiha-wj8sl
    @MadaraUchiha-wj8sl 2 дні тому

    What IDE did you use? I assume that you're using a Mac machine.

  • @ssk1970
    @ssk1970 2 дні тому

    c question was too cute, thanks for explaining

  • @llarn.i5103
    @llarn.i5103 2 дні тому

    literally the best bitwise video, clear and straight to the point, thanks a lot.

  • @prakharsinha6915
    @prakharsinha6915 2 дні тому

    I'm proficient in java... Don't want to go with cpp

  • @tamannathakur8893
    @tamannathakur8893 2 дні тому

    goat

  • @minni1785
    @minni1785 2 дні тому

    Can anyone help me ?? Why this code is not working Q: MINIMUM ARRAY SUM class Solution { public: int recursive(vector<int>& nums, int k, int op1, int op2, bool choice1, bool choice2, int count1, int count2, int index) { if (index >= nums.size()) { return 0; } int option_1 = INT_MAX; if (!choice1 && count1 < op1) { option_1 = ceil(nums[index] / 2.0) + recursive(nums, k, op1, op2, true, choice2, count1 + 1, count2, index); choice1=false; } int option_2 = INT_MAX; if (!choice2 && count2 < op2 && nums[index]>=k) { option_2 = (nums[index] -k) + recursive(nums, k, op1, op2, choice1, true, count1, count2 + 1, index); choice2=false; } int no_option = nums[index] + recursive(nums, k, op1, op2,false,false,count1,count2, index + 1); return min(no_option, min(option_1, option_2)); } int minArraySum(vector<int>& nums, int k, int op1, int op2) { return recursive(nums, k, op1, op2, false, false, 0, 0, 0); } };

  • @College_era69
    @College_era69 2 дні тому

    i would suggest one thing while wrttingggg the title of video A to D you should also mention the question number as many people search question with the question no. like solution of leetcode 3361

  • @AJayasri-p3x
    @AJayasri-p3x 2 дні тому

    Can i talk with you

  • @Anshul-qb2pm
    @Anshul-qb2pm 2 дні тому

    can someone explain the correct mathematical approach for problem B instead of binary search?

  • @AmanSinghRawat-ug6fr
    @AmanSinghRawat-ug6fr 2 дні тому

    great explaination

  • @carry8419
    @carry8419 2 дні тому

    great explanation sir

  • @TechTutorials-vt8dj
    @TechTutorials-vt8dj 3 дні тому

    great

  • @vedaryan334
    @vedaryan334 3 дні тому

    do you have code for the problem D

  • @garvsharma1202
    @garvsharma1202 3 дні тому

    bro easily said C is easy , now it will take me hours to digest this question !!

  • @AJayasri-p3x
    @AJayasri-p3x 3 дні тому

    Your number please

  • @certain3602
    @certain3602 4 дні тому

    codecheff ka dalo

  • @barbecue1617
    @barbecue1617 4 дні тому

    Nice explanation In problem c1, would iterating over the min (m ,smallest power of 2 greater than x ) also work?

  • @bhaveshsonar7558
    @bhaveshsonar7558 4 дні тому

    Thankss sir 🫡

  • @bobybest1159
    @bobybest1159 4 дні тому

    SIR thanks you for Biweekly

  • @TLE_Eliminators
    @TLE_Eliminators 4 дні тому

    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/yJ4SJ6hikHeN3aG1A

  • @TLE_Eliminators
    @TLE_Eliminators 4 дні тому

    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/rryVKQ5VVTo9kvK1A

  • @Virtualexist
    @Virtualexist 4 дні тому

    apart from the dp logic, I really loved the way of writing code in Q3. Where to learn these intricacies of lambda functions?

    • @Ayush37262
      @Ayush37262 2 дні тому

      Just search about it and learn, it's not a big deal man!

    • @Virtualexist
      @Virtualexist 2 дні тому

      @ Yeah already done. Forgot to come back here and mention so.

    • @Ayush37262
      @Ayush37262 2 дні тому

      @@Virtualexist Cool! But I would advise to don't use lambda functions in interviews.

    • @Virtualexist
      @Virtualexist 2 дні тому

      @ Not needed.

  • @TLE_Eliminators
    @TLE_Eliminators 4 дні тому

    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/xFQ8pumGQP2qUaGw6

  • @AKSHAYASH-w4o
    @AKSHAYASH-w4o 5 днів тому

    Why a vis vector is even required ?

  • @swadheen01
    @swadheen01 5 днів тому

    No one can explain like you. Great explanation of c. <3

  • @varshabadda
    @varshabadda 6 днів тому

    This is really insane.Really helpful.

  • @ridhamanand8519
    @ridhamanand8519 6 днів тому

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

  • @shristisrivastava7054
    @shristisrivastava7054 6 днів тому

    Very clear explanation.Thanks for making this video

  • @bitlandsaga
    @bitlandsaga 6 днів тому

    Such a mind-blowing technique. Thanks for such a nice explanation ❤

  • @mrcow6531
    @mrcow6531 7 днів тому

    I never usually comment but this content on graph is on fire🥶

  • @KNR_06_10
    @KNR_06_10 7 днів тому

    Pls upload codeshef editorial

  • @garv1202
    @garv1202 7 днів тому

    Where's div3 and codechef editorial?

  • @subhajyotisaha1020
    @subhajyotisaha1020 8 днів тому

    The last problem solution is not getting accepted in LeetCode.

    • @VirajChandra
      @VirajChandra 7 днів тому

      Updated the problem in description.

  • @devmahad
    @devmahad 8 днів тому

    thanks :)

  • @grimreaper4277
    @grimreaper4277 8 днів тому

    Loved the Explaination

  • @KNR_06_10
    @KNR_06_10 9 днів тому

    Pls upload solutions for Codeforces 988 div 3

  • @harshpandey4190
    @harshpandey4190 9 днів тому

    was stuck on D and you explained it nicely

  • @vignankota7688
    @vignankota7688 9 днів тому

    In 4th question, in checker function you missed one case when abs(y - x) > max_diff: there we have to keep all x or all y for continuous -1's. [2,-1,4,-1,-1,6] -> [2,3,4,5,5,6]

    • @VirajChandra
      @VirajChandra 8 днів тому

      Updated the problem in description.

  • @Ethical-Boy-No-1
    @Ethical-Boy-No-1 9 днів тому

    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 8 днів тому

      Updated the problem in description.

  • @AakashKumar-vf3dh
    @AakashKumar-vf3dh 9 днів тому

    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 8 днів тому

      Updated the problem in description.

  • @tinkusharma6274
    @tinkusharma6274 9 днів тому

    Very Helpful, Small video but very efficient..

  • @AbhishekKumar-wx3rw
    @AbhishekKumar-wx3rw 10 днів тому

    the bullet example was great i immediately got why we are doing the process after that example