Mass Cheating in every Leetcode Contest (More shorts on this New Channel) - kzitem.infohH473URZWnk?si=VHvc-zg59h7kbR-u
@SHUBHAMJHA-o3g
4 ай бұрын
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)
@satviksrinivas8764
3 ай бұрын
Thank you!
@goyaldeekshant
4 ай бұрын
superb
@Adarsh_03
4 ай бұрын
#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
@AleemPasha-r2w
4 ай бұрын
also make a video on special array 2
@ARYANMITTAL
4 ай бұрын
yaa yaa, it is already live on channel ❤️
@ucanhly1166
4 ай бұрын
You're so smart , love ya bro keep it up!
@shatulbansal4756
3 ай бұрын
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??
@hello-world8906
2 ай бұрын
so wont the TC be O(n*m), where n is the number of elements and m is the number of digits (which can be 10^9 in worst case)? and why isn't this causing TLE then?
@SHUBHAMJHA-o3g
4 ай бұрын
are yaar this was simple ! but didn't click at that time!
@SHUBHAMJHA-o3g
4 ай бұрын
did it thanks again for the vid
@shravankhar7180
4 ай бұрын
Can anyone explain why we should divide by 2
@TON-108
4 ай бұрын
repetitions bro,
@Bababahahabwhwh
4 ай бұрын
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
4 ай бұрын
4 saal to bahut dur ki bat h keep hoping
@YuvikaSingh-gs2sj
4 ай бұрын
make a solution of special array 2 @aryanmittal
@ARYANMITTAL
4 ай бұрын
Done sir, already live on channel ❤️
@Engineering.Wallah
4 ай бұрын
Question was not clear. I was subtracting the digits
Пікірлер: 22