Maximum XOR of Two Numbers in an Array | using Trie Data Structure | DSA-One Course
Vložit
- čas přidán 7. 09. 2024
- Hey guys, In this video, We will be solving a problem known as the Maximum XOR of two numbers in an array. We'll be using the Trie Data Structure to optimize the solution.
Practice here: practice.geeks...
🥳 Join our Telegram Community:
Telegram channel: telegram.me/re...
Telegram group: telegram.me/ds...
🚀 Follow me on:
Instagram: / anuj.kumar.sharma
Linkedin: / sharma-kumar-anuj
Twitter: / realanujbhaiya
💸 Use coupon code ANUJBHAIYA on GeeksforGeeks to avail discounts on courses!
📚 Complete DSA Playlist: • DSA-One Course - The C...
Complete Android Development Playlist: • Android Development Tu...
Hashtags:
#anujbhaiya #dsaone
Ignore these tags:
maximum xor of two numbers in an array
anuj bhaiya java
trie data structure
dsp anuj bhaiya
java anuj bhaiya
maximum subset xor
anuj kumar sharma
array in dsa
complete java dsa course
concatenation of consecutive binary numbers
data structure
data structures and algorithms java
maximum xor
maximum xor of two numbers
python for data analysis
trie
No BS , No 5 min introduction, No Faltu promotion . Straight to the point.
Bhaiya bhale hi views kam aarhe hai last videos mai aap kabhi bhi band mat kijiye ye DSA course ya Koi aur course...All the best to you
Thanks a ton, Anuj! This course helped me a lot to build a great knowledge base of fundamentals especially because I did not study computer science in college. This was a life saver for me to prep for interviews. Once again, Thank you Anuj Bhaiya 😊
It really help us a lot than imagined.
Thank you for building such a informative course.
We will be waiting for your next course to start.
I hope you will start it sooner to provide us a lot more things to learn...
Very true.
Thanks Anuj bhaiyaa
Starting today, was checking that course is completed or not!!
just one word thanks
is it compeleted?
@@jjsb3818 yes
Congratulations for 100 videos to all🥳🥳🥳
OP bhaiya🥰🤗
bhai aag lgadi aag lgadi , patienly waiting for the next one ....
Hi, Anuj Bhaiya this is Shubha 🙂 First of all Thanks a lot for making this wonderful course ❤ so I started learning 2 month it's been and now today at 17 Sept 3.00am I finished this video lecture ..... TBH from this course I gained so much knowledge One thing you know I completed my B.tech in 2021 from Mechanical Engineering currently I'm working at Infosys. ... and I decided to go at Amazon it's my dream and I will do it. Thank you so much bhaiya again in these 2 month I learned so many things .... So, another one is I took a subscription at GFG self paced course so tomorrow onwards I will start for making a good coding skill further .... Again Thank you Bhaiya ❤ Love you bhaiya❤🩹❤🩹
Big fan bhaiya from your old apni kaksha channel to your golden Anuj Bhaiya new Channel from Day 0 to Day 100 this journey is very awesome and memorable for me
You started this dsa course when no any course on dsa with java is available . THIS COURSE IS PRECIOUS FOR ME AND IT HELPS ME LOTS AND LOTS.
THANKS ANUJ BHAI. And congratulations to you..
Do I need to learn java before started this DSA with java course
@@nidaali4665 ya Bro atleast you have to know syntax of java and having understanding of concept of this language and its collections framework
I recommend for java language you can go with code with harry java playlist them anuj bhaiya,s collections framework video and then come here bro. Follow this pattern.
@@preetkatiyar969 Ok thanku for info 😊
Is this course best for interview preparation as well ??
You making DSA easy to understand
I watched all videos and all the videos are very good for understanding of concepts and selection of questions is very good. Thanks a lot sir
Thank you bhaiya for this generous and selfless deed of yours. This course has helped me a lot and I want to stay consistent till I make it big. Can you please suggest what should I take up next after finishing this course? Thanks one again🙂.
please make topic wise playlist of your dsa course it will be very helpful
Thank you bheya for all your efforts and for completing the dsa playlist . I was start learnig java and dsa from you when you are educator in apnikaksaha and i am finished my dsa here . I t is a great experience and pleasure ton learn things from you . I hope i can meet you personally and thank you personally . Wish me a luck for upcoming placement season . Thank you ❤❤❤
Bro I had a question is this series complete??Like this sums up all DSA concepts?
@@shivanshshekherojha2599 Almost yes except some advanced concepts. And some important concepts like dp , tree are very big and have many questions. But bheya did some basic and classic questions. Other then it is good for beginners. After one complete it they can simply understand and learn advanced concepts.
@@EkAurEngineer1011 oh great basically this sets the base and make it feasible for learning advanced concept at quicker speed???Btw best wishes for your upcoming placements....
THANK YOU SO MUCH...VERY HELPFUL BRO.......
Congratulations
Amazing bhaiya you are the bestest coding teacher on this planet
Thanks bhaiya for such a great playlist
Thanks 🙏
badhiya tha bhaiya.
I enjoyed learning this dsa one course, really helpful Anuj bhaiya you are a genius!🤌🏻
Consistency OP in the chat Guys 😍🥵
Bahuth shaandar. Thanks a lot.
Hey anuj bhaiya could you please let me by completing these 100 videos playlist is these enough for our placement means all topics are covered or not.
Why did the second loop in the function max_xor starts with 1 ? Can somebody explain?
Did you get its ans ... Why he has done so??
Thank You Bhaiyya😁✌️🎉🎊🤗💖💝
sir similary please explain maximize and
Can we use 0,1 knapsack algo to solve this problem ?
We can also sort the array and maximise the xor value of two adjacent elements in the sorted array.
great explanation!
Bhaiya ,please make video on Segment tree .
Will try to make a video on this soon
really helpful😊
Hello bhaiya.
Is this your cource is enough for product base placement point of view.
Is this series complete?
Great one✌️✌️
thanks you
Superb
Bhaiya thanks
Make DSA two course
Hahaha, not for a while now 😄
What is this DSA one and DSA Two??? Could you please tell me? :)
@@nehamartand7499 did you got the answer, is this playlist is not the complete ones?
here is the answer:---------
class Solution
{
static class TrieNode
{
TrieNode one,zero;
}
static void insert(TrieNode root,int n)
{
TrieNode curr=root;
for(int i=31;i>=0;i--)
{
int bit=(n>>i)&1;
if(bit==0)
{
if(curr.zero==null)
{
TrieNode newNode=new TrieNode();
curr.zero=newNode;
}
curr=curr.zero;
}
else
{
if(curr.one==null)
{
TrieNode newNode=new TrieNode();
curr.one=newNode;
}
curr=curr.one;
}
}
}
static int findmax(TrieNode root,int n)
{
TrieNode curr=root;
int ans=0;
for(int i=31;i>=0;i--)
{
int bit=(n>>i)&1;
if(bit==1)
{
if(curr.zero!=null)
{
ans+=(1
is this playlist complete
prog.java:26: error: class, interface, or enum expected
can you please tell me why I got this error
Hame kaise pata line number 26 pe kya likha h tumne.. 😂
@@youthoober21 code hi copy nahi hua sorry😂
100th 🥳👩💻
Kya ye playlist yaha complete hai
bhaiya aap to vaade ke pakke ho.
Hello bhayiya plzs help me.. mera ghar pe ki family pe koi nehi haii batane wala kya karu kya nehi.. actually mera problem haii mera diploma ke badd 2 yr gapp haii job kar rehithi non it field pe fir mee B-Tech kiya huh.... Me tcs Wipro saree mnc pe apply kar rehi huh..lekhin qu merea ko koi link nehi aaaraha haii test ke liye plzzz bhayiya help me🥺😭😭😭 I'm so helplessness
Aap aise har mat mano tcs wipro me one year gap hi allowed rehta h aur bhi bahut company me aisa h ,par aur bhi bahut saare company hai jinko year gap se matlb nhi rehta aap waha try karo
Is this a final video of DSA One.?
YES
English
✨✨✨✨
1111 == 15 not 17
bohot fast bolte ho bhai,thoda sa slow bologe to logo ko dikkat km hogi