Codeforces Round 925 Intuitions | Problem G Recommended For Learning

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

КОМЕНТАРІ • 26

  • @kira-nr3qj
    @kira-nr3qj 8 місяців тому +2

    F is also a very conceptual problem, which teach us the concept for finding cycles in the directed graph

  • @amirjribi9966
    @amirjribi9966 8 місяців тому

    Nice content!
    I'm asking if there is any technique or intuition to solve problems that tells you to find number of pairs or triplets or quadruplets that satisfy a given proprety?

  • @RishavRaj-f8e
    @RishavRaj-f8e 8 місяців тому

    you are too good in explaining please continue it.

  • @ankursaini-s4i
    @ankursaini-s4i 8 місяців тому

    Best explanation seen so far

  • @anonymousftw6386
    @anonymousftw6386 8 місяців тому

    Great sir we need more educational videos from you

  • @softwaredeveloper4852
    @softwaredeveloper4852 8 місяців тому +1

    try to explain your code also with your logic explanation
    it really clears the understanding
    atleast in F and G problems.

  • @iam-Coder
    @iam-Coder 8 місяців тому

    hey abhishek bhaia ! I am a 1st year student and wanted to start with cp can pls tell how should i start i have basic understanding of data structures

  • @ishanvora6371
    @ishanvora6371 8 місяців тому

    Nice Explanation Sir. Problem A can be also solved in O(1).
    Approach:
    First We can try dividing the number equally , and then since we had to make it lexographically as small as possible, so we can try to first try to make 1st letter as “1” and put all extra elements in the last letter, and similarly try to make 2nd letter as “1” and put all extra elements into last letter. Now if further possibility remains, try to put some element from 1st letter to 2nd letter
    Code:-
    void solve()
    {
    int n;
    cin >> n;
    int each = n / 3;
    int rem = n % 3;
    int last = each;
    int slast = each;
    int first = each;
    if (rem == 1) {
    last++;
    } else if (rem == 2) {
    if (last + 2 > 26) {
    slast++;
    last++;
    } else {
    last += 2;
    }
    }
    // cout

    • @abhishekcode42
      @abhishekcode42  8 місяців тому

      Yes correct

    • @shivank630
      @shivank630 8 місяців тому +1

      I also did the same with O(1) time complexity
      ll n;
      cin>>n;
      ll rem=n%26;
      if(rem==0) {
      if(n/26==1) cout

    • @naveenchokkapu3727
      @naveenchokkapu3727 8 місяців тому

      if (n

  • @まめんた-b2k
    @まめんた-b2k 8 місяців тому

    thank you!

  • @noobchess2516
    @noobchess2516 8 місяців тому

    please give the link of modulus arithmetic concept for D problem as the comment in which you gave is deleted now

  • @vishalmishra-ue4te
    @vishalmishra-ue4te 8 місяців тому

    Great explanation.

  • @chetanchaudhary1017
    @chetanchaudhary1017 8 місяців тому

    Thanks sir

  • @Algorithmswithsubham
    @Algorithmswithsubham 8 місяців тому +1

    mind blowinng

  • @Newton-f4q
    @Newton-f4q 8 місяців тому

    please make a separate video with code and good voice quality plz

    • @abhishekcode42
      @abhishekcode42  8 місяців тому

      All codes you can find in my codeforces, link already present in description.
      For the voice, can you tell me what's the issue you're seeing. If it is something related to voice breaking or noise, I will try to fix it.

  • @bojjaatchutharao1843
    @bojjaatchutharao1843 8 місяців тому +1

    Superb explanation sir🎉

  • @GameroPhobia
    @GameroPhobia 8 місяців тому

    Crazyyyy

  • @codingwithsam4992
    @codingwithsam4992 8 місяців тому

    Make more often.

  • @Mr.infinity01
    @Mr.infinity01 8 місяців тому

    make more videos like this

  • @thedarkknight1865
    @thedarkknight1865 8 місяців тому +2

    Hindi m banao Bhai please