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

Поділитися
Вставка
  • Опубліковано 19 чер 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

КОМЕНТАРІ • 21

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

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

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

    Thank you!

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

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

  • @user-vs3jn4xi4x
    @user-vs3jn4xi4x Місяць тому

    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 Місяць тому

    superb

  • @user-vi5nd3pl8s
    @user-vi5nd3pl8s Місяць тому

    also make a video on special array 2

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

      yaa yaa, it is already live on channel ❤️

  • @Adarsh_03
    @Adarsh_03 Місяць тому +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 24 дні тому

    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 Місяць тому

    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 🤘

    • @meme_Overflow
      @meme_Overflow 26 днів тому

      4 saal to bahut dur ki bat h keep hoping

  • @YuvikaSingh-gs2sj
    @YuvikaSingh-gs2sj Місяць тому +1

    make a solution of special array 2 @aryanmittal

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

      Done sir, already live on channel ❤️

  • @shravankhar7180
    @shravankhar7180 29 днів тому

    Can anyone explain why we should divide by 2

    • @TON-108
      @TON-108 28 днів тому

      repetitions bro,

  • @user-vs3jn4xi4x
    @user-vs3jn4xi4x Місяць тому +2

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

  • @Engineering.Wallah
    @Engineering.Wallah Місяць тому

    Question was not clear.
    I was subtracting the digits