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
Mass Cheating in every Leetcode Contest (More shorts on this New Channel) - ua-cam.com/users/shortshH473URZWnk?si=VHvc-zg59h7kbR-u
Thank you!
You're so smart , love ya bro keep it up!
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)
superb
also make a video on special array 2
yaa yaa, it is already live on channel ❤️
#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
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??
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 🤘
4 saal to bahut dur ki bat h keep hoping
make a solution of special array 2 @aryanmittal
Done sir, already live on channel ❤️
Can anyone explain why we should divide by 2
repetitions bro,
are yaar this was simple ! but didn't click at that time!
did it
thanks again for the vid
Question was not clear.
I was subtracting the digits
Bahane nhi
@@omkumarjha2745 sach
@@omkumarjha2745 sachi