3153. Sum of Digit Differences of All Pairs | Arrays | Sum

Sdílet
Vložit
  • čas přidán 19. 06. 2024
  • In this video, I'll talk about how to solve Leetcode 3153. Sum of Digit Differences of All Pairs | Arrays | Sum
    Let's Connect:
    📱Discord (Join Community) : / discord
    📝Linkedin: / aryan-mittal-0077
    📸 Instagram: / codewitharyanbhai
    💻 Twitter - / aryan_mittal007
    🤖 Github: github.com/aryan-0077
    About Me:
    I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
    ✨ Hashtags ✨
    #programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Komentáře • 21

  • @ARYANMITTAL
    @ARYANMITTAL  Před měsícem +1

    Mass Cheating in every Leetcode Contest (More shorts on this New Channel) - czcams.com/users/shortshH473URZWnk?si=VHvc-zg59h7kbR-u

  • @satviksrinivas8764
    @satviksrinivas8764 Před 8 dny

    Thank you!

  • @ucanhly1166
    @ucanhly1166 Před měsícem

    You're so smart , love ya bro keep it up!

  • @user-vs3jn4xi4x
    @user-vs3jn4xi4x Před měsícem

    Hello for the second loop can it also be done knowing the fact there are two 6 at the 3rd position and 4 is the number of elements in the array,
    so why not just do 2*(4 - 2) = 4 directly, and then for all the places this way the second loop will just take O(digits of the number in nums)

  • @goyaldeekshant
    @goyaldeekshant Před měsícem

    superb

  • @user-vi5nd3pl8s
    @user-vi5nd3pl8s Před měsícem

    also make a video on special array 2

    • @ARYANMITTAL
      @ARYANMITTAL  Před měsícem

      yaa yaa, it is already live on channel ❤️

  • @Adarsh_03
    @Adarsh_03 Před měsícem +1

    #define ll long long int
    class Solution {
    public:
    unordered_map mp;
    void count(int el){
    string s = to_string(el);
    for(int i=0; i

  • @shatulbansal4756
    @shatulbansal4756 Před 24 dny

    Bro, you made a small mistake in TC calculation, length of each number is upto 10^9 and not 10, so TC of your solution will be more than what you suggested, your views??

  • @Bababahahabwhwh
    @Bababahahabwhwh Před měsícem

    Maine yr BC map ka ni socha par maine modulo se karke har pair k liya check kiya koina pehla contest tha abhi toa 1st sem start bhi ni hua,baki koi advice do guys 🤘

  • @YuvikaSingh-gs2sj
    @YuvikaSingh-gs2sj Před měsícem +1

    make a solution of special array 2 @aryanmittal

    • @ARYANMITTAL
      @ARYANMITTAL  Před měsícem

      Done sir, already live on channel ❤️

  • @shravankhar7180
    @shravankhar7180 Před 29 dny

    Can anyone explain why we should divide by 2

  • @user-vs3jn4xi4x
    @user-vs3jn4xi4x Před měsícem +2

    are yaar this was simple ! but didn't click at that time!

  • @Engineering.Wallah
    @Engineering.Wallah Před měsícem

    Question was not clear.
    I was subtracting the digits