Educational Codeforces Round 167 | Video Solutions - A to D | by Ankit Ghildiyal | TLE Eliminators

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

КОМЕНТАРІ • 50

  • @TLE_Eliminators
    @TLE_Eliminators  2 місяці тому +2

    Please fill the feedback form: forms.gle/fw2M8mwtNWTm9xiG9

  • @pratyushdubey5362
    @pratyushdubey5362 2 місяці тому +10

    Can the TLE team please stop giving this guy the editorials he literally just reads the code and waits for the students who were able to solve the question give the intuition he talks about the chat and waits for them to give the answer what's the point of taking the discussion if u had to cater just to the one's who were able to solve the problem
    I urge you to please give these editorials to Raghav, Abhinav or Gaurish they are far better than him he might be a good coder no doubt, but is a bad teacher.

  • @BabuChak-jv3zz
    @BabuChak-jv3zz 2 місяці тому +6

    Not understood problem D, in if else statement both are doing samee thing

  • @nipunkothari5518
    @nipunkothari5518 2 місяці тому +29

    This is the worst instruxtor on this channel, literally skims over code.

    • @josuke21
      @josuke21 2 місяці тому +12

      Exactly, let Raghav , Viraj or Abhinav teach. Why is Ankit getting so many contests?
      I know these discussions are free but what's the use of a free resource if it's bad?

    • @shudhanshusingh1401
      @shudhanshusingh1401 2 місяці тому +6

      Exactly bro Ankit is the worst I had ever seen

  • @bhavyakapoor3042
    @bhavyakapoor3042 2 місяці тому +9

    Worst Explanation of D. Ik its free but u cant provide a teacher who doesnt know how to teach. Better provide Raghav. Ankit is worst at explaining

  • @user-hw6lq2vu5c
    @user-hw6lq2vu5c 2 місяці тому +6

    There is something odd with the CP sheet. Can you please fix it ?

  • @rv5778
    @rv5778 2 місяці тому +4

    I tried to comment twice with my code but it got removed automatically in a minute . Any ideas why that can happen ?.

  • @user-wg5vc9ik1s
    @user-wg5vc9ik1s 2 місяці тому +2

    Sir how you are calculating the time complexity of problem D like i thought the same but was thinking that it would give me a tle.... Can you please explain the time complexity of D

    • @anwerhlahami8549
      @anwerhlahami8549 2 місяці тому

      i copied the code and i got tle for his solution i didn't undesrtood why

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

    why it is wrong to doing int the way to find the longest common subsequence and ans=(n+m-LCS) in question B

  • @Jay-ym2ri
    @Jay-ym2ri 2 місяці тому +1

    in problem b why do we add i in result=min(result,n+m-curi+i); ?

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

    the instructor learnt to code but never learnt how to teach.

  • @meet.p1
    @meet.p1 2 місяці тому +1

    how to use this as it is not working in vs code
    for(auto &[diff, temp] : diffs)

    • @josuke21
      @josuke21 2 місяці тому +1

      If you are using code runner it won't work. [x,y] only works for C++20 , not C++17 or C++14.
      PS: If someone knows how to fix it , write an explanation pls

    • @swarupkumarbhuyan8831
      @swarupkumarbhuyan8831 2 місяці тому

      Afaik i think GNU based systems or linux based this gives an error
      I am still unable to figure out why is that so

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

      Install GCC G++ 20

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

      man, i also had same issue, many coders used auto &[x, y] but when i do, it says error

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

    Hiring people of higher rating doesn't guarantee you that they will teach students well.
    You can be an expert, CM or master and it doesn't mean that you can teach people exceptionally well. Teaching is a skill itself and one should not expect themselves to be good at teaching just because they are so good at a skill. Him and harsh Gupta are not good at explaining

  • @himanshu_27tt
    @himanshu_27tt 2 місяці тому +1

    fourth solution gives TLE , this is not optimized approach

    • @FastTech1000
      @FastTech1000 2 місяці тому

      yes i have applied this logic during contest itself i got an tle

    • @ravishekharyadav7701
      @ravishekharyadav7701 2 місяці тому

      @@FastTech1000 it does get accepted btw.

    • @FastTech1000
      @FastTech1000 2 місяці тому

      @@ravishekharyadav7701 yes

  • @BBITIANsujay
    @BBITIANsujay 2 місяці тому +1

    explanation is not up-to the mark please explain the qn then start to solve and clear explanation #honest review

  • @sakshamsalaria8997
    @sakshamsalaria8997 2 місяці тому +1

    could someone tell me why this code is incorrect for question 2nd
    #include
    #include
    #include
    using namespace std;
    int longestCommonSubsequence(const string& a, const string& b) {
    int n = a.length();
    int m = b.length();
    vector dp(n + 1, vector(m + 1, 0));
    for (int i = 1; i t;
    while(t--){
    string a, b;
    cin >> a >> b;

    int result = longestCommonSubsequence(a, b);
    int k = result;

    cout

    • @tusharkumar3038
      @tusharkumar3038 2 місяці тому +3

      try for this string
      abcde and cfe
      your code will you 6 but correct answer is 7

    • @darshanrajpattanaik2154
      @darshanrajpattanaik2154 2 місяці тому

      ​@@shudhanshusingh1401tried, it fails

    • @vinaynagle9028
      @vinaynagle9028 2 місяці тому

      Try on
      ab
      acb
      Your code. Will give 3 as output means acb which is wrong in this ab is not a substring
      It's correct output should be 4
      abcb

    • @vinaynagle9028
      @vinaynagle9028 2 місяці тому

      I have also done the same mistake in contest

    • @vinaynagle9028
      @vinaynagle9028 2 місяці тому

      ​@@shudhanshusingh1401
      cde
      abcefg here longest common substring is length 1 hence output will be 8 but correct is 7

  • @mdshobuj7302
    @mdshobuj7302 2 місяці тому +3

    too much poor exlaination

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

    worst tutor TLE has ever introduced , he is not able to explain and convey the solution correctly and bit confusing

  • @sohamjain8599
    @sohamjain8599 2 місяці тому

    Thanks ❤

  • @Sai-ir8yh
    @Sai-ir8yh 2 місяці тому

    Could someone pls tell me why this is failing for question 2?
    I cant think of any test case for which it fails
    cin>>a>>b;
    ans = a.length();
    for(int i=0;i

  • @ayushmaanjaysingh4043
    @ayushmaanjaysingh4043 2 місяці тому

    ghatiya explanation of D , no visualisation ,

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

    extremely bad explanation of D

  • @FastTech1000
    @FastTech1000 2 місяці тому

    TLE code D

  • @SkAhnaf-jt5kf
    @SkAhnaf-jt5kf Місяць тому

    Hi

  • @jeeaspirant9697
    @jeeaspirant9697 2 місяці тому

    time complexity in question b is O(t*b^2*a) which comes to near O(1e8) , but the judge does not gives TLE why ??

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

      Cuz u can do 4e8 operations in 1 sec, and here time limit given 2 sec

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

      And it's not t*b^2*a
      It's t*b*a = 1e7

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

      @@DayaTapuKPapaGada I did with t*b^2*a which still got accepted

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

      @@jeeaspirant9697 that will be 1e9 which shouldn't pass ideally as in 2sec, 8e8 will pass