Lecture 79: Trie & its Implementation || C++ Placement Series

  Рет қаралды 151,666

CodeHelp - by Babbar

CodeHelp - by Babbar

Күн бұрын

Пікірлер: 405
@solarchat9413
@solarchat9413 2 жыл бұрын
You said you will complete for sure, and here you are. Thanks 👍
@shraddhasingh8574
@shraddhasingh8574 2 жыл бұрын
learning from this series since 3 months, really helpful to me . thank you for your hard work you're doing a really good job
@aryanmaniyar7301
@aryanmaniyar7301 Жыл бұрын
Bhaiya, itna quality content free mein provide karna is not a joke! Bilkul samajh sakte hai ki aapko bhi aapke personal kaam hote hai, so thank you so much for taking your time out for this :)
@amarparajuli692
@amarparajuli692 2 жыл бұрын
Waaahhh..... Iss series se koii v Noob apni programming skills ko behtaar bana saktaa hai.🔥🔥
@manavsharma142
@manavsharma142 5 күн бұрын
Hats off to your hardwork and dedication bhaiya ....Please never change yourself , you are a great person
@anushkayachit
@anushkayachit 2 жыл бұрын
Finalllyyyyy... Aagaye aap.... Don't worry we are here only.... We know you'll complete this series 🔥🔥
@bollywoodmaestro4553
@bollywoodmaestro4553 2 жыл бұрын
koi idea h aur kitne time chalega ye series
@sandeep_khariwal8137
@sandeep_khariwal8137 2 жыл бұрын
@@bollywoodmaestro4553 jo abhi flow chl rha h series ka... according to that 2months lg jayenge...agr bhaiya dubara flow me aa jate h to ye series within 1month me ho jayegi...jo ki ab flow me aana mushkil h 😭...."Look on us bro we are dependent on you"😑
@MukeshKumar-fz3sw
@MukeshKumar-fz3sw 2 жыл бұрын
Why here created two different-different class trienode and trei pls help
@devesharya5184
@devesharya5184 6 ай бұрын
@@MukeshKumar-fz3sw because, tree is the set of all nodes created, so we make tree node by node.
@AyurvedaAddict
@AyurvedaAddict Жыл бұрын
The Most Ever Easy Explanation of Trie... My first video on Trie and understood it fully.. in one time ✅✅
@AshishSharma-ly9lg
@AshishSharma-ly9lg 8 күн бұрын
Your window which turned from daylight to dark in a single video motivated me to work with consistency no matter what!!
@tmhd48_abhishekbade78
@tmhd48_abhishekbade78 2 жыл бұрын
Brother, Your teaching method is ingenious I am big fan. RUN machine = VIRAT KOHLI (Sir) CODE machine = BABBAR (Sir)
@human75788
@human75788 2 жыл бұрын
One word : Love Babbar❤ Sir, just outstanding.
@anshikasingh4158
@anshikasingh4158 Жыл бұрын
sir aap toh sach mein din raat mehnat karte ho. video shuru hui thi toh din tha, raat ho gyi khatam hote hote. respect++;inspiration=babbar
@aparnamanna1369
@aparnamanna1369 2 жыл бұрын
Finally 😎 bhaiya is back , Bhaiya placement series discontinue mat karna I'm literally enjoying your series
@RiteshYadav-lh4wo
@RiteshYadav-lh4wo 10 ай бұрын
00:00 Implementing a dictionary with three operations: insertion, search, and removal. 02:22 Trie data structure implementation in C++ 07:47 Implementation of Trie data structure in C++ 10:50 Understanding the structure of the trie data structure. 16:48 Introduction to Trie data structure 19:50 Understanding the implementation of Trie 25:11 Trie node types 28:45 Trie data structure and its implementation in C++ 33:43 Removing words from a trie and optimizing space. 35:50 Trie is a data structure used for efficient space utilization and optimal utilization. 40:36 Implementation of Trie data structure in C++ 43:08 Understanding the implementation of Trie data structure Crafted by Merlin AI.
@govindsuryavanshi6653
@govindsuryavanshi6653 Жыл бұрын
First I have completed all DSA series and now conclude this is Greatest ever DSA series to exists on youtube or paid courses. Your contribution will be remembered. You're God of DSA for us🙇‍♂ Thanks you.
@mdshahariarsadiq9995
@mdshahariarsadiq9995 Жыл бұрын
can you give me the trie implementation code..
@sukhjitsingh959
@sukhjitsingh959 2 жыл бұрын
Babar I can understand you and trust you ....there is no any need to think even about your commitment in suspicious way .... 👍 So I trust your thoughts so thanks for you such course and thoughts .......you have ... 👍
@itsaayush7357
@itsaayush7357 Жыл бұрын
To edit karke theek kr le na😂
@therealartist9
@therealartist9 10 ай бұрын
@@sukhjitsingh959 bhai nxt level hai tu nayi bna diya teacher ko😆
@sukhjitsingh959
@sukhjitsingh959 10 ай бұрын
@@therealartist9 bahi toon tu mere se bhi next level hai ...abhi professionals wali baat nahi tujh mein ....
@therealartist9
@therealartist9 10 ай бұрын
@@sukhjitsingh959 mcc tune professional bankar kya kar liye ?? corporate ke majdoor
@sukhjitsingh959
@sukhjitsingh959 10 ай бұрын
@@therealartist9 Teri ukaad ka frakh dikhta hai ... Putraa ethey Tera Bappu bethaa pange nahi laydee ... Text tu pattaa lagda Teri ukaad da .... Kar te mein bahut kuch laya... ... Tere Paley nahi panee
@RohitKumar-oo8lo
@RohitKumar-oo8lo 2 жыл бұрын
Bhaiya, plz 30 April tak khatam kardo, jitna jaldi khatam hoga utna zyada hum khudse aur practice kar paaynge questions..Especially graph aur DP k...Please !! ♥♥
@bollywoodmaestro4553
@bollywoodmaestro4553 2 жыл бұрын
av aur kitne din lagenge is series ko khatam hone me ?
@Engineer_With_A_Life
@Engineer_With_A_Life Жыл бұрын
Bhai placement hogya tumhara? Khaan hua?
@RaviRana-d2w
@RaviRana-d2w 11 ай бұрын
I have implemented by myself just by listening till 11:13. Thank you Babbar Bhaiya 😃
@shobhitmaste
@shobhitmaste 7 ай бұрын
cap
@sandipmedhe1201
@sandipmedhe1201 2 жыл бұрын
Thank you bhaiya aap vapas aa gaye hume pura bharosa hai ki aap isko pura complete kar ke rahoge because your are the love bhaiya
@virendrakeshri6072
@virendrakeshri6072 2 жыл бұрын
thanks bhaiya aap plz continue karo aap sahi me bahut acha padhate ho ye dsa ka best course ho sakta h you tube par plz bhaiya discontinue mat karna
@_KARAN-699
@_KARAN-699 8 ай бұрын
29:20 we do not need to make child in searching we can directly do this!! int index = word[0] - 'A'; if (root->children[index] != NULL) { return searchUtil(root->children[index], word.substr(1)); } else { return false; } }
@anuptewary3016
@anuptewary3016 2 жыл бұрын
Bhaiya tension na lo we all are with you ❤️🔥
@Satya-g5t
@Satya-g5t 2 ай бұрын
Patiently and well explained every problem.
@aakashbhargavaa
@aakashbhargavaa 2 жыл бұрын
Thanks for continuing this course. Thank you so much.
@MukeshKumar-fz3sw
@MukeshKumar-fz3sw 2 жыл бұрын
Why here created two different-different class trienode and trei pls help
@HARRY-xz1hf
@HARRY-xz1hf Жыл бұрын
@@MukeshKumar-fz3sw did you get the answer
@UEEANILKUMAR
@UEEANILKUMAR 2 жыл бұрын
Thank you so much for coming 🙏🙏🙏. We fully trust on you .
@awesomepatt620
@awesomepatt620 2 жыл бұрын
Awesome content bhaiya..waiting for your LIVE course very anxiuosly
@itsaayush7357
@itsaayush7357 Жыл бұрын
At last me when bhaiya said.. "Pr vo bhoola nahi he".. Sounds like a movie dialogue 🔥
@ShridharSarda
@ShridharSarda 6 күн бұрын
Thanks for this course Bhaiya ,consistency++
@dewanshyadav6033
@dewanshyadav6033 2 жыл бұрын
full trust on you bhaiya ♥️👍👍👍
@VivekSharma-lr7kx
@VivekSharma-lr7kx 4 ай бұрын
calling the function length of word times but for each calling you are passing the string hence the for every call there is creating a string of size(n-1) hence ' for inserting with recurstion it is O( len*len);
@Mkhuss
@Mkhuss 20 күн бұрын
Yes. To optimize this, u can add a more parameter to the function "index", and u can call the function as index+1 for next call
@human75788
@human75788 2 жыл бұрын
Just watching your explanation and class building only I myself wrote both iterative & recursive solutions of build a trie from scratch in leetcode, both were 100% correct. Your explanation is just too simple and easy to understand.
@supersuperhero2449
@supersuperhero2449 Жыл бұрын
In deleting, while returning do free(child) ; to free the space , make root->isterminal=false , for making nonterminal to last character of word so word doest comes in search while searching
@utkarshsingh1457
@utkarshsingh1457 2 жыл бұрын
Thanks for the beautiful content Bhaiya ❤️❤️
@parthtrivedi318
@parthtrivedi318 2 жыл бұрын
Thank you bhaiya hamare liye itne efforts karneke liye
@sharatpaul
@sharatpaul 2 жыл бұрын
If we consider uppercase and lowercase then there should be 26*2=52 possible paths from a node
@fnGamingz
@fnGamingz 2 жыл бұрын
no, better to convert the input to lowercase always.
@lakshitgoel8481
@lakshitgoel8481 Жыл бұрын
​@@fnGamingzbut in that case, you will lost the original input from the user, which is not a good practice
@prashantbirajdar9271
@prashantbirajdar9271 2 жыл бұрын
maza aaa gyaa sir swad+++ subkuch samaj aya achhe see..... love you sirr and consisitancy+++
@sushilsahu5719
@sushilsahu5719 2 жыл бұрын
Thanks you bhaiya for quality content 🤗♥️
@excelexpertclasses6776
@excelexpertclasses6776 Жыл бұрын
learned much from this video babbar ji thank you
@parasmanku7536
@parasmanku7536 4 ай бұрын
What is the refresh rate of this monitor ?
@niharbastia5740
@niharbastia5740 2 жыл бұрын
Full support bhaiya❤️💙... Keep up the consistency 💥⚔️
@MukeshKumar-fz3sw
@MukeshKumar-fz3sw 2 жыл бұрын
Why here created two different-different class trienode and trei pls help
@skchoudhary4122
@skchoudhary4122 2 жыл бұрын
Trie color🔥🔥
@gatikalagh39
@gatikalagh39 Жыл бұрын
good teaching skills
@Lucifer_movies
@Lucifer_movies 2 жыл бұрын
We have full trust on you bhaiya ♥️
@sounaksaha1455
@sounaksaha1455 2 жыл бұрын
space optimization in trie is OP. 🔥🔥🔥
@sumitkanth5349
@sumitkanth5349 Жыл бұрын
how space can we optimized in remove function ?
@rishisharma3867
@rishisharma3867 11 ай бұрын
@@sumitkanth5349 traverse to the last character node then start deleting the node in reverse order one by one until u found isTerminal = true for a node
@Vije860
@Vije860 2 жыл бұрын
Finally new video comes 😁😁 Welcome back bhaiya 🙏🙏
@saritaprasad4295
@saritaprasad4295 2 жыл бұрын
Great explanation! I am here to strong DSA
@inspiringzone12
@inspiringzone12 2 жыл бұрын
Thank you so much for coming back bhaiya
@krishan9739
@krishan9739 5 ай бұрын
Hashset and Trie are not explained in detailed. At least not like others. These are the most important data structure and you solved very few questions for both.
@rajshrivastava906
@rajshrivastava906 2 жыл бұрын
Thank you so much bhaiya for continuing this series.
@mkat21
@mkat21 Жыл бұрын
Bhaiya OP.bas ese hi maan kar rha tha bolne ka toh bol dia.😂
@aashishrangdal9614
@aashishrangdal9614 2 жыл бұрын
Bhaiyya consistency dikhao zara😅😅 Plz daily videos dalne ki koshish kro⚡⚡🔥🔥
@shailenkaushik4910
@shailenkaushik4910 2 жыл бұрын
Awesome explanation,Sawad++😅😅
@rachit_joshi
@rachit_joshi 7 ай бұрын
Thank You So Much BHRATA SHREE !!!!!!!
@justjellytechnology3462
@justjellytechnology3462 8 ай бұрын
35:20 at this how we can optimise the space. Suppose we remove TIS word from trie then TIME will impact. Can you solve my problem. I can't understand this point
@chayanmallick939
@chayanmallick939 7 ай бұрын
Just start from the bottom and check if it has any child nodes then dont delete it if not then delete that node.
@justjellytechnology3462
@justjellytechnology3462 7 ай бұрын
@@chayanmallick939 Tnx..
@raisanjeeb42
@raisanjeeb42 2 жыл бұрын
Nice Explanation bhaiya..Crystal Clear🔥🔥
@b-237-abhishekmishra7
@b-237-abhishekmishra7 2 жыл бұрын
Thank you bhaiya very helpful video ❤️
@KratosProton
@KratosProton 2 жыл бұрын
Aap hi ka intezaar thaa....
@adityavishwakarrma514
@adityavishwakarrma514 2 жыл бұрын
Yo yo video a gyi😀😀
@arpitrajput6424
@arpitrajput6424 2 жыл бұрын
Finally Achhe din Phir aa Gaye😎😎 Present++
@mukeshkir1991
@mukeshkir1991 2 жыл бұрын
sir ji ...greedy algorithm bhi karayoge na .....🧡🧡😥😥...please reply ...lots of love from mount-abu
@MeetaCollection
@MeetaCollection 4 ай бұрын
but sir agar koi do ka prefix search karega aur do removed hoga toh us case mein prefix search toh true return karega
@mkp189
@mkp189 2 жыл бұрын
How dud your lower case input give matching?? Index was calculated based on upper case so overflow hona chahiye tha since children only 26
@ShubhamKumar-rh3dz
@ShubhamKumar-rh3dz Жыл бұрын
shi bol rha bhai..mere me fss gya tha.. fir maine index ke liye lower case use kiya
@rishabhupadhyay8165
@rishabhupadhyay8165 2 жыл бұрын
Thnx
@sumitkanth5349
@sumitkanth5349 Жыл бұрын
how space can we optimized in remove function ?
@KratosProton
@KratosProton 2 жыл бұрын
Great explaination
@ayushgoel4145
@ayushgoel4145 2 жыл бұрын
Dhanywaad Bhaiya!
@RohitKumar-oo8lo
@RohitKumar-oo8lo 2 жыл бұрын
Abhi mazza aayga na Bidu!! :D
@Undertaker1122
@Undertaker1122 2 жыл бұрын
🙌🙌🙌dil se respect
@bhavyasharma3500
@bhavyasharma3500 2 жыл бұрын
Thanks Babbar Bhai !!
@anandprateekbaranwal8275
@anandprateekbaranwal8275 2 жыл бұрын
Awesome going bhaiya 💥
@eprithvikushwah4754
@eprithvikushwah4754 Жыл бұрын
hmesha maza aata h love bhaiya
@dipakkumarsingh.7151
@dipakkumarsingh.7151 4 ай бұрын
maja aagaya....
@jaydwarkadhish959
@jaydwarkadhish959 2 жыл бұрын
Sir amazing video
@Harish50602
@Harish50602 Жыл бұрын
Bhaiya as you mentioned Trie uses less memory than hashmap by showing those 5 words ARE,ARM,ARENA,ARMDILO,ARDENO in these words if i try to search ARM will it not show false as isTerminal will be false in the node M ?
@venkateshpk7822
@venkateshpk7822 9 ай бұрын
nice explanation bhaiya
@letsgo8640
@letsgo8640 Жыл бұрын
Wonderful!
@memorybyshubhammanitripath4368
@memorybyshubhammanitripath4368 2 жыл бұрын
Bhaiya code section update kar do 🙏😁 By the way maja bahut aaya Bola tha na 19 April ko catchup kar lunga course So 18 April ko hi done Bahut maja aa raha bhaiya 🙏🙏🙏🙏
@mohammedkaif5358
@mohammedkaif5358 Жыл бұрын
this lectures code is not uploaded in github,is it uploaded somewhere else?
@AmandeepSingh-cs3we
@AmandeepSingh-cs3we Жыл бұрын
Won't the time complexity be O(length^2) cuz we are doing substr, which also takes O(length)?
@fazerugbrug439
@fazerugbrug439 2 жыл бұрын
superb
@pratik_code
@pratik_code 2 жыл бұрын
Java Code For Trie ------------------------------------------------------------------------------------- class TrieNode{ char data; TrieNode[] children=new TrieNode[26]; boolean isTerminal; TrieNode(char ch) { data=ch; for(int i=0;i
@sanskarkumar028
@sanskarkumar028 Жыл бұрын
thanks love bhaiya
@rajkumarojha1028
@rajkumarojha1028 2 жыл бұрын
Maza agaya bhaiya ❤️
@kumarpawansahh
@kumarpawansahh 2 жыл бұрын
Welcome bhaiya
@JohnSmith-uu5gp
@JohnSmith-uu5gp Жыл бұрын
Just Awesome
@TechUprise-by-Jyoti
@TechUprise-by-Jyoti 2 жыл бұрын
Thank you bhaiya😄
@vedantdeshmukh4949
@vedantdeshmukh4949 2 жыл бұрын
Babbar sher is back!
@akashjha822
@akashjha822 2 жыл бұрын
East or west Babbar Bhaiya Is The Best
@mr.himanshu4299
@mr.himanshu4299 2 жыл бұрын
keep uploading babbar bhai
@divyadixit5607
@divyadixit5607 2 жыл бұрын
Bhaiya apne wo 26 character ka mapping konse video me samjhaya hai ??
@divyanshupant3892
@divyanshupant3892 4 ай бұрын
swaad agayaaaaa
@BornHubisLive
@BornHubisLive 2 жыл бұрын
Thanks a lot bhaiya....
@adityaprasad2298
@adityaprasad2298 Жыл бұрын
solution for removal of word: void removeUtil(trienode* root,string word){ if(word.length()==0){ root->isTerminal=false; cout
@shiwangkashyap8887
@shiwangkashyap8887 2 жыл бұрын
Bhaiya op msttt
@sane_aalam
@sane_aalam 2 жыл бұрын
Present Bhaiya ❤️⌚
@itzheavem4451
@itzheavem4451 2 жыл бұрын
great video 👍
@CodeAndThrive
@CodeAndThrive 2 жыл бұрын
Kipp it up bhaiya....🔥🔥🔥
@AAnand-my1ql
@AAnand-my1ql 2 жыл бұрын
Thank you Bhaiya
@akankshapandey9773
@akankshapandey9773 2 жыл бұрын
Thanku sir 🙏
@moharramansari3343
@moharramansari3343 2 жыл бұрын
Finalllyyyyy!! Free ka trie.
@sounaksaha1455
@sounaksaha1455 2 жыл бұрын
Bhaiya back in business, please aab chorke na jaiyo.
Lecture 80: Longest Common Prefix Problem || Tries || C++ Placement Series
20:17
L1. Implement TRIE | INSERT | SEARCH | STARTSWITH
31:25
take U forward
Рет қаралды 343 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Lecture 81: Implement a Phone Directory Using Trie || C++ Placement Series
27:04
Learn Redux Toolkit in 1 Video
53:34
CodeHelp - by Babbar
Рет қаралды 64 М.
Lecture 78: Hashmaps in C++ || C++ Placement Series
1:03:27
CodeHelp - by Babbar
Рет қаралды 316 М.
Lecture 82: Rat in Maze Problem || Backtracking Day 1 || C++ Placement Series
31:37
Trie Data Structure | Java DSA Course
2:16:35
Apna College
Рет қаралды 247 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.