3076. Shortest Uncommon Substring in an Array | Implementation | Time Complexity Analysis

  Рет қаралды 2,704

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 19
@ce088rajankumarpatel4
@ce088rajankumarpatel4 8 ай бұрын
❤❤❤no one explain like this .thank u...
@ayaaniqbal3531
@ayaaniqbal3531 8 ай бұрын
Nice explanation bro😊
@harshalgarg1676
@harshalgarg1676 8 ай бұрын
Nicely explained
@PramodKumar-bu2uf
@PramodKumar-bu2uf 8 ай бұрын
mene contest mae same logic socha tha but implement nahi ho paya tha😇
@PramodKumar-bu2uf
@PramodKumar-bu2uf 8 ай бұрын
thanks bhaiya ❤
@jeehub041
@jeehub041 8 ай бұрын
Superbly explained brother. Thanks a lot🙏❤
@ayanmaity9339
@ayanmaity9339 8 ай бұрын
thank you so much....I tried the code for 2 hours....but didn't get it....very good explanation👍👍❤
@ChiruBillion
@ChiruBillion 8 ай бұрын
thanks bhai, video banane ke liye :)
@fraserdab
@fraserdab 8 ай бұрын
Man I knew brute force but I thought my solution was wrong I never thought about the constraints part
@KothaChandraTeja-n3i
@KothaChandraTeja-n3i 8 ай бұрын
Thankyou so much bro😊
@MATTUPALLINVSGKESAVAKUMARBCE
@MATTUPALLINVSGKESAVAKUMARBCE 8 ай бұрын
if the values of n is more and length of string is more than mentioned in the string . could you please give me approach to solve that ?
@sudiptadas7455
@sudiptadas7455 5 ай бұрын
Use trie data structure
@vinsin4619
@vinsin4619 8 ай бұрын
during the contest i did solve it i got 631 testcases passed but still no submission due to MLE
@pranavbagal9988
@pranavbagal9988 8 ай бұрын
I didn't came up with a solution of this during the contest
@ronakkriplani1838
@ronakkriplani1838 8 ай бұрын
class Solution { public: vector shortestSubstrings(vector& arr) { int n = arr.size(); vector ans(n,""); unordered_map mp; for (int k = 0; k < n; k++) { string s = arr[k]; int sz = s.size(); for (int i = 0; i < sz; i++) { for (int j = i; j < sz; j++) { string sub = s.substr(i, j - i + 1); mp[i].insert(sub); } } } // Printing elements of the map for(int k=0;k
@ronakkriplani1838
@ronakkriplani1838 8 ай бұрын
got in i have made mistake in creating substrings ,I have used M[i] but i shoud use M[k[
@shivamjha7920
@shivamjha7920 8 ай бұрын
Badiya tha bhai but written code bhi de dete to phle khud se samjhne ki kosis krta phir video bhi dekhta. Although good explanation
@swapnilwalave1135
@swapnilwalave1135 8 ай бұрын
Bro try to provide notes
3085. Minimum Deletions to Make String K-Special | DP | Hash Table
16:14
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Confronting Ronaldo
00:21
MrBeast
Рет қаралды 33 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 24 МЛН
Big O Notation, Time Complexity | DSA
21:17
Telusko
Рет қаралды 80 М.
Count Inversions in an Array | Brute and Optimal
24:17
take U forward
Рет қаралды 243 М.
DP 31. Shortest Common Supersequence | DP on Strings
26:44
take U forward
Рет қаралды 170 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39