Respected MIK Sir, 🙏🏼 Tomorrow's motivational quote from my side: "True success isn't about momentary bursts of brilliance, but about consistent, disciplined action. It's about showing up day after day, making smart choices, and relentlessly pursuing your vision."
@aizad786iqbal16 сағат бұрын
thanks for taking the feedback, if possible, for easy problems especially involving these complex topics like trie etc code in Java, makes it easier to remember the code also, became a member today 💚
@codestorywithMIK16 сағат бұрын
Thanks for the feedback 🙏😇❤️ Also, i wanted to mention that the membership feature was given by KZbin after crossing some threshold subscribers count. I usually don’t want any paid service, so the amount for membership should be default value given by KZbin. There is no difference in the contents that I provide in membership and non-membership. So if you wish, you can definitely opt-out of the membership . Hope you understand 😇❤️🙏
@aizad786iqbal15 сағат бұрын
@@codestorywithMIK absolutely, I just hope it helps the reach of your channel since the content is awesome, It'll help a lot in achieving their goals... And get better at DSA 😊
@codestorywithMIK15 сағат бұрын
@aizad786iqbal appreciate your support Aizad. Means a lot 🙏❤️😇
@ankitatiwary466316 сағат бұрын
Thanks for explaining in Java sir
@italk-gj5kk8 сағат бұрын
thanks a lot for bringing java code
@gui-codes16 сағат бұрын
I was able to solve using trie MIK. Thanks to you 🤩
@Mr-raj3779 сағат бұрын
Thanks for explaining in JAVA 🥺❤️
@arjunprasad107113 сағат бұрын
I watched your video of yesterday's problem ; thanks to that, I was able to solve using Trie without looking at the solution. Thanks!!
@m_fi892613 сағат бұрын
thanks for the java code
@Coder_Buzz0714 сағат бұрын
Thank u for the explanation bhaiya❤❤
@indianengineer580216 сағат бұрын
thanks for java code
@Vibhanshushrivastava4 сағат бұрын
i think leetcode get obsessed with prefix and suffix , 😂😂
@sahebraojadhav972716 сағат бұрын
Thank u mik
@sakyasekhar421912 сағат бұрын
Trie approach is optimal if pref is array of queries
@anonymous-qy1vw16 сағат бұрын
let's fight
@gui-codes16 сағат бұрын
yeah bro, let's do it 🔥
@komalrani38943 сағат бұрын
Thanku bhaiya for solve in java please try to solve also in java
@sauravchandra1010 сағат бұрын
Yaay! Solved it using Trie. Python implementation: class TrieNode: def __init__(self): self.child = [None]*26 self.endWord = False class Trie: def __init__(self): self.root = TrieNode() def insert(self, word): cur = self.root for c in word: ind = ord(c)-ord('a') if not cur.child[ind]: cur.child[ind] = TrieNode() cur = cur.child[ind] cur.endWord = True def searchPrefix(self, prefix): cur = self.root for c in prefix: ind = ord(c)-ord('a') if not cur.child[ind]: return False cur = cur.child[ind] return True class Solution: def prefixCount(self, words: List[str], pref: str) -> int: cnt = 0 for word in words: if len(word) < len(pref): continue trie = Trie() trie.insert(word) if trie.searchPrefix(pref): cnt += 1 return cnt
@dayashankarlakhotia494312 сағат бұрын
One liner Solution public int prefixCount(String []words,String pref){ return (int)Arrays.stream(words).filter(s->s.startsWith(pref)).count(); }🎉❤
@darakhshannaheed256312 сағат бұрын
Bhaiya thanks for your solution... gfg 160 bhi chal rhi h please uske problems bhi solve krdete to acha hota... please
@rode_atharva10 сағат бұрын
ab trie ka
@AnthonyEvans-y4eСағат бұрын
Thanks for the forecast! I need some advice: I have a SafePal wallet with USDT, and I have the seed phrase. (mistake turkey blossom warfare blade until bachelor fall squeeze today flee guitar). How can I transfer them to Binance?
@kartikgandhi74472 сағат бұрын
hi mik, just wanted to ask that can't we just create a single Trie class instead of a struct and a global function getNode and then another class Trie, confused me a bit. Brilliant explanation though!
@gayatrichaudhary5803 сағат бұрын
java 💚💚
@vikasvoruganti749014 сағат бұрын
Also we can solve this using kmp
@zaffarzeshan130814 сағат бұрын
KMP(JAVA) class Solution { public int prefixCount(String[] words, String pref) { int n=words.length; int cnt=0; for(int i=0;i
@gauravparasar457114 сағат бұрын
Bhiya 😭 mene amazon ka oa diya thaa or 2no question ke saare test case pass hogaye the fir b select nahi hua 😢
@codestorywithMIK13 сағат бұрын
Strange. Did they share you the final score ?? Because many times the remaining test cases are evaluated later. There might be large test cases or cases with corner cases.
@gauravparasar457111 сағат бұрын
@@codestorywithMIK no they didnt share anything even they said While we are not able to provide additional feedback or information about this decision
@codestorywithMIK10 сағат бұрын
That’s bad and wierd. I am assuming that there might be a lot of candidates and selection might have been done by considering many other factors. Or, some hidden test cases might have faced issues (error, tle etc)
@gauravparasar45719 сағат бұрын
@@codestorywithMIK i don't know but this is my last hope to do something big even i told my parent with full excitement but in the end 🥹🥹 ab kya hoga aage mann nahi krta ab padhne ka br br rejections
@jayanaaryan34982 сағат бұрын
bhiaya ek doubt apne bola hum root se puchte hai ye jaise 'a' present hai ya nhi if yes to aage jao uske pucho tumhare pass 't' hai ya nhi par apke code ke according hum bas node bante hai usme character assign nhi karte esse kyu?