TLE Eliminators - by Priyansh
TLE Eliminators - by Priyansh
  • 327
  • 1 548 456
Codechef Starters 167 | Video Solutions - A to E | by Pradyumn Kejriwal | TLE Eliminators
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E of Codechef Starters 167 (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/cp-sheet
Solution Codes:
Delete Not Equal: www.codechef.com/viewsolution/1119568434
Lottery Tickets: www.codechef.com/viewsolution/1119414189
Grid Construction (Odd): www.codechef.com/viewsolution/1119423188
Grid Construction (Even): www.codechef.com/viewsolution/1119545797
Temperature Balance: www.codechef.com/viewsolution/1119443397
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 Delete Not Equal
09:10 Lottery Tickets
33:50 Grid Construction (Odd)
58:20 Grid Construction (Even)
1:27:20 Temperature Balance
Переглядів: 2 403

Відео

Leetcode Weekly Contest 430 | Video Solutions - A to C | by Soumojit Chatterjee | TLE Eliminators
Переглядів 2,6 тис.22 години тому
Here are the video solutions for problems A, B, C of Leetcode Weekly Contest 430. 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: Minimum Operations to Make Columns Strictly Increasing: leetcode.com/problems/minimum-operations-to-make-columns-strictly-increasi...
Codeforces Good Bye 2024 | Video Solutions - A to E | by Pradyumn Kejriwal | TLE Eliminators
Переглядів 5 тис.22 години тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E of Codeforces Good Bye 2024. 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 Solu...
Codechef Starters 166 | Video Solutions - A to F | by Jay Shirgupe | TLE Eliminators
Переглядів 4,2 тис.День тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E, F of Codechef Starters 166 (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/cp-sh...
Educational Codeforces Round 173 | Video Solutions - A to D | by Soumojit | TLE Eliminators
Переглядів 6 тис.День тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Educational Codeforces Round 173. 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 Round 995 (Div 3) | Video Solutions - A to G | by Jay Shirgupe | TLE Eliminators
Переглядів 7 тис.День тому
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 995. 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: Preparing for the Olympiad: codeforces.com/contest/2051/submission/297824987 Journey: codef...
Leetcode Weekly Contest 429 | Video Solutions - A to D | by Jay Shirgupe | TLE Eliminators
Переглядів 2,9 тис.День тому
Here are the video solutions for problems A, B, C, D of Leetcode Weekly Contest 429. 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: Minimum Number of Operations to Make Elements in Array Distinct: leetcode.com/contest/weekly-contest-429/submissions/detail/148...
Codeforces Round 994 (Div 2) | Video Solutions - A to D | by Soumojit Chatterjee | TLE Eliminators
Переглядів 5 тис.День тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Codeforces Round 994. 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: MEX Destruction: codeforces.com/contest/2049/submission/297474055 pspspsps: codeforces.com/contest/2...
Codeforces Global Round 28 | Video Solutions - A to D | by Pradyumn Kejriwal | TLE Eliminators
Переглядів 4,2 тис.14 днів тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Codeforces Global Round 28. 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: Kevin and Combination Lock: codeforces.com/contest/2048/submission/297250667 Kevin and Permuta...
Codechef Starters 165 | Video Solutions - A to E | by Pradyumn Kejriwal | TLE Eliminators
Переглядів 4,1 тис.14 днів тому
Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E of Codechef Starters 165 (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/cp-sheet...
Codeforces Round 993 (Div 4) | Video Solutions - A to G2 | by Pradyumn Kejriwal | TLE Eliminators
Переглядів 8 тис.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, F, G1, G2 of Codeforces Round 993. 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. ...
Leetcode Weekly Contest 428 | Video Solutions - A to D | by Jay Shirgupe | TLE Eliminators
Переглядів 4,6 тис.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 for problems A, B, C, D of Leetcode Weekly Contest 428. 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: Button with Longest Push ...
Codechef Starters 164 | Video Solutions - A to D | by Harsh Gupta | TLE Eliminators
Переглядів 3,9 тис.21 день тому
TLE 12.0 - our Competitive Programming course TLE 12.0 is live! Enrol now at www.tle-eliminators.com/?referralCode=C018B2F7 Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Codechef Starters 164 (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-solvi...
Codeforces Round 992 (Div 2) | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators
Переглядів 9 тис.21 день тому
TLE 12.0 - our Competitive Programming course TLE 12.0 is live! Enrol now at www.tle-eliminators.com/?referralCode=859D315C Here are the video solutions in the form of a post-contest discussion for problems A, B, C, E of Codeforces Round 992. 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 c...
Leetcode Weekly Contest 427 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
Переглядів 3,6 тис.21 день тому
Leetcode Weekly Contest 427 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
Leetcode Biweekly Contest 145 | Video Solutions - A to D | by Jay Shirgupe | TLE Eliminators
Переглядів 2,8 тис.21 день тому
Leetcode Biweekly Contest 145 | Video Solutions - A to D | by Jay Shirgupe | TLE Eliminators
Codeforces Round 991 (Div 3) | Video Solutions - A to G | by Viraj Chandra | TLE Eliminators
Переглядів 9 тис.28 днів тому
Codeforces Round 991 (Div 3) | Video Solutions - A to G | by Viraj Chandra | TLE Eliminators
Codechef Starters 163 | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Переглядів 3,2 тис.28 днів тому
Codechef Starters 163 | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Codeforces Round 990 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Переглядів 5 тис.28 днів тому
Codeforces Round 990 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Educational Codeforces Round 172 | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Переглядів 4 тис.Місяць тому
Educational Codeforces Round 172 | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Leetcode Weekly Contest 426 | Video Solutions - A to D | by Jay Shirgupe | TLE Eliminators
Переглядів 2,5 тис.Місяць тому
Leetcode Weekly Contest 426 | Video Solutions - A to D | by Jay Shirgupe | TLE Eliminators
Codeforces Round 989 (Div 1 + 2) | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Переглядів 2,9 тис.Місяць тому
Codeforces Round 989 (Div 1 2) | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Leetcode Biweekly Contest 144 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
Переглядів 2 тис.Місяць тому
Leetcode Biweekly Contest 144 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
Leetcode Weekly Contest 424 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
Переглядів 4,5 тис.Місяць тому
Leetcode Weekly Contest 424 | Video Solutions - A to D | by Viraj Chandra | TLE Eliminators
Codeforces Round 987 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Переглядів 4,7 тис.Місяць тому
Codeforces Round 987 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators
Codechef Starters 160 | Video Solutions - A to E | by Raghav Goel | TLE Eliminators
Переглядів 3,7 тис.Місяць тому
Codechef Starters 160 | Video Solutions - A to E | by Raghav Goel | TLE Eliminators
Codeforces Round 986 (Div 2) | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Переглядів 4,7 тис.Місяць тому
Codeforces Round 986 (Div 2) | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
Codeforces Round 985 (Div 1 + 2) | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators
Переглядів 2,8 тис.Місяць тому
Codeforces Round 985 (Div 1 2) | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators
Codechef Starters 159 | Video Solutions - A to H | by Raghav Goel | TLE Eliminators
Переглядів 4,1 тис.Місяць тому
Codechef Starters 159 | Video Solutions - A to H | by Raghav Goel | TLE Eliminators
Codeforces Round 984 (Div 3) | Video Solutions - A to G | by Abhinav Kumar | TLE Eliminators
Переглядів 7 тис.2 місяці тому
Codeforces Round 984 (Div 3) | Video Solutions - A to G | by Abhinav Kumar | TLE Eliminators

КОМЕНТАРІ

  • @sanjaypathak8925
    @sanjaypathak8925 11 годин тому

    For Q-C can 'b' be calculated from 'a' using same logic without calling function for b also.

  • @Mad_Monk29
    @Mad_Monk29 11 годин тому

    for c the recursive brute force shouldnt it be nlogn instead of just n

  • @kunjdave3676
    @kunjdave3676 13 годин тому

    2nd question approach is to poor

  • @RoniBadgujjar
    @RoniBadgujjar 14 годин тому

    amazing explanation keep doing it bro

  • @maanas_sehgal
    @maanas_sehgal 20 годин тому

    For temperature balance you can easily use this approach keeping track of curr and result: ll curr = arr[0], res = 0; for (int i = 1; i < n; i++) { res += abs(curr); curr += arr[i]; } We just have to keep track of curr balance. Why this works? It's because suppose you have 3 0 0 -3 So now you have to get 3 to -3 At each 'i', you keep a track of how much you are travelling with, like here my curr = 3, at i = 1, i add 3 to res, then curr += 0, then again 2nd time, res becomes 6, after that res becomes 9 and cur becomes 3 - 3 = 0. which is correct

  • @KenOrSomething
    @KenOrSomething 22 години тому

    The explanation for problem D is horrendous.

  • @learningcircle5155
    @learningcircle5155 22 години тому

    Amazing !! Great explanation bro of Grid construction (odd) problem !!

  • @rahulraja8853
    @rahulraja8853 День тому

    Nice explanation bro thanks

  • @sparrrooww5473
    @sparrrooww5473 День тому

    great explanation, thanks for the video

  • @AdityaVerma-rn9jn
    @AdityaVerma-rn9jn День тому

    I am coming from leetcode background and dont have mathematical intuition for problems like number 3. Anyody knowing good questions like these?

  • @venkatanarendranalamothu3649

    for the question B, i.e Erase first or second letter , will that approach work for removal of any character

  • @adityakushwahaiiitbh_2005
    @adityakushwahaiiitbh_2005 День тому

    temperature balance can easily be solved using prefix sum logic

  • @yashkumar2042
    @yashkumar2042 День тому

    Yo first time I solved more problems than tle eliminators editorial

  • @fingtional
    @fingtional День тому

    Grid Construction (Even) -> had to print (1 to n) in 1st row then ( n to 1) in second and repeat the process.

    • @NAMANMARKHEDKAR
      @NAMANMARKHEDKAR День тому

      WHAAAT i WAS MISSING A " " !!!!! after each number print in line

  • @sachinboreoffl
    @sachinboreoffl День тому

    for Temperature Balance problem, we can simply use prefix sum logic

  • @DivyanshKhatikar
    @DivyanshKhatikar День тому

    Amazing video !! Explained everything clearly ! Thank you

  • @prakhargarg4166
    @prakhargarg4166 День тому

    Thanks sir

  • @vivek-the-coder
    @vivek-the-coder День тому

    can anyone please tell me , whats wrong in this code vector<int>nums(n); for(int i = 0; i <n; i++){ cin>> nums[i]; } int next_greater = INT_MAX; int next_smaller = INT_MIN; int chef = nums[0]; for(int i=1; i < n; i++){ if(nums[i] < chef && next_smaller > nums[i]) next_smaller = nums[i]; if(nums[i] > chef && nums[i] < next_greater) next_greater = nums[i]; } if(next_greater == INT_MAX){ next_greater = 1000000; } if(next_smaller == INT_MIN){ next_smaller = 1; } int right = ((chef + next_greater)/2); int left = ((chef + next_smaller + 1)/2); cout << right - left << endl;

    • @pradyumnkejriwal3007
      @pradyumnkejriwal3007 День тому

      @@vivek-the-coder if there is no next greater or next smaller then in that case setting them to 1 or 10^6 gives wrong answer

  • @garvsharma9904
    @garvsharma9904 День тому

    Temperature Q was 1235 rated 😅

  • @dank7044
    @dank7044 День тому

    Great editorial, but since this was an easy contest i wanted solutions for last 2 problems.

    • @vaibhav-l9s
      @vaibhav-l9s День тому

      Great bro, you are really doing nice coding. can i know, how to adapt that type of knowledge to get it. if u feel free then only share no issue. have a good day.

  • @MohitPrajapati-gy3hw
    @MohitPrajapati-gy3hw День тому

    i don't know which level i am in competetive programming and which type of ratings question should practice can any one tell ? also i am able to solve 3 question from starter 167

    • @crazyshorts-i5e
      @crazyshorts-i5e День тому

      Which div

    • @MohitPrajapati-gy3hw
      @MohitPrajapati-gy3hw День тому

      ​@@crazyshorts-i5ediv 4 , starters 167 is my first contest in code chef

    • @MohitPrajapati-gy3hw
      @MohitPrajapati-gy3hw День тому

      ​@@crazyshorts-i5eDiv 4,this is my first contest in code chef

    • @crazyshorts-i5e
      @crazyshorts-i5e День тому

      @@MohitPrajapati-gy3hw did you solved temperature balance and your rating on other platforms

    • @MohitPrajapati-gy3hw
      @MohitPrajapati-gy3hw День тому

      @@crazyshorts-i5e no I can't solve it and codeforces rating is 1090 newbie

  • @TLE_Eliminators
    @TLE_Eliminators День тому

    Please fill the Feedback form for PCD: forms.gle/ViLGi5pQzcy4oRpv6

  • @pradyumnkejriwal3007
    @pradyumnkejriwal3007 День тому

    Considering the feedback from my last PCD, I tried to improve my pronounciation in this one. Do let me know if you guys are still facing any problems understand my speech

    • @kumkumslab5811
      @kumkumslab5811 День тому

      that's the great session i have learned a lot !!

    • @noface-qs5yi
      @noface-qs5yi День тому

      Very clear. Thanks. Follow up question for Matrix Creation(even): I understood the approach and I was there but I couldn't think of a compliment I implemented dijkstra and got TLE. In future if I see any problem like this again what's the method or mindset or initial thought I can start to solve it or reframing the question, what's the learning I can take from this problem?

    • @dhruvupadhyaya3948
      @dhruvupadhyaya3948 День тому

      Best he sir

    • @viveksingh9223
      @viveksingh9223 День тому

      I am watching in 1.5x and still able to understand.

  • @iamarpit.
    @iamarpit. День тому

    first 🥇

  • @vg5675
    @vg5675 День тому

    can we create a set that stores the l and r values can for each query we can just cout the size of the set

  • @EminMustafa-g9p
    @EminMustafa-g9p 2 дні тому

    Web3 Infinity is not just a project; it's a community of like-minded individuals driving towards a common goal. Join the presale and become part of this powerful movement that's shaping the future of finance!

  • @SerdarSeher-d3v
    @SerdarSeher-d3v 2 дні тому

    I'm confident in the long-term prospects of Web3 Infinity. Its groundbreaking technology and unique value proposition set it apart from the crowd.

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

    Invest in the safest token out there - Web3 Infinity is built for massive success!

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

    similar code in java is giving TLE at the last testcase .

  • @_u_ya-dw6vx
    @_u_ya-dw6vx 2 дні тому

    nice explanation for question 3. i was stuck with o( n^3) and o(n) space earlier in the contest.

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

    this is useful ... even after a year

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

    Can you guys add time stamps?

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

    I think overall it was a good discussion , but for Distnict power question it was really confusing Like didn't understand what was the root idea

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

    how can you store answers for any length in a dp array if they have varying k values ?

  • @Flux-e4y
    @Flux-e4y 3 дні тому

    B question to sirf time waste ke liye diya tha nahi karna mujhe 🤬🤬🤬🤬🤬🤬🤬🤬

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

    you can make use of inbuilt gcd function in c++ __gcd(a,b)

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

    c expected rating range?

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

    The explanation for problem C is not up to the mark. I watched the explanation for problem 3 more than three time but its very difficult to understand.

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

    5:37 no of ways to get a sum of zero from zero is one? I cant understand. Could anyone explain?

  • @AnshShrivastava-c4l
    @AnshShrivastava-c4l 4 дні тому

    Great Explanations !!

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

    Just Watched this video, It was a quick refresher on all the dp topics . I learned about the dp terminologies - dp states , transitions. I always tend to forget whta my dp state actually mean ..thanks for giving me insights

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

    Starting this playlist on Dec 30 19:31 IST Let's see how it goes

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

    Great solution for E

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

    Solution D is soo good