mene contest mae same logic socha tha but implement nahi ho paya tha😇
@PramodKumar-bu2uf8 ай бұрын
thanks bhaiya ❤
@jeehub0418 ай бұрын
Superbly explained brother. Thanks a lot🙏❤
@ayanmaity93398 ай бұрын
thank you so much....I tried the code for 2 hours....but didn't get it....very good explanation👍👍❤
@ChiruBillion8 ай бұрын
thanks bhai, video banane ke liye :)
@fraserdab8 ай бұрын
Man I knew brute force but I thought my solution was wrong I never thought about the constraints part
@KothaChandraTeja-n3i8 ай бұрын
Thankyou so much bro😊
@MATTUPALLINVSGKESAVAKUMARBCE8 ай бұрын
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 ?
@sudiptadas74555 ай бұрын
Use trie data structure
@vinsin46198 ай бұрын
during the contest i did solve it i got 631 testcases passed but still no submission due to MLE
@pranavbagal99888 ай бұрын
I didn't came up with a solution of this during the contest
@ronakkriplani18388 ай бұрын
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
@ronakkriplani18388 ай бұрын
got in i have made mistake in creating substrings ,I have used M[i] but i shoud use M[k[
@shivamjha79208 ай бұрын
Badiya tha bhai but written code bhi de dete to phle khud se samjhne ki kosis krta phir video bhi dekhta. Although good explanation