Пікірлер
@newbie8051
@newbie8051 21 минут бұрын
16:00 machine coding 😭 meri to sunke hi gandfat gayi Thanks for the extremely detailed video guys !
@PurePerfect
@PurePerfect 2 күн бұрын
Nice
@Aditya_Harsh
@Aditya_Harsh 3 күн бұрын
I have implemented below way. Please note isFull() condition and let me know if there is anything wrong with it. public class queueUsingCircularArray { static final int size = 5; static int queue[]=new int[size]; static int front = -1; static int rear = -1; public boolean isFull() { if(front == ((rear+1)%size)) return true; else return false; } public boolean isEmpty() { if(front==-1) return true; else return false; } public void enqueue(int val) { if(isFull()) { System.out.println("Queue is full"); } else { rear = (rear+1)%size; queue[rear]=val; if(front==-1) front++; System.out.println("Enqueue is successfull"); } } public int dequeue() { if(isEmpty()) { // Queue is already empty System.out.println("Queue is empty"); return -1; } else { int val; if(front==rear) { // Only one element is present in Queue val = queue[front]; queue[front]=-1; front=rear=-1; // We reset our queue to initial state } else { val = queue[front]; queue[front]=-1; front = (front+1)%size; } System.out.println("Dequeue is successfull"); return val; } } public void display() { for(int x: queue) { System.out.print(x+" "); } System.out.println(); } public static void main(String[] args) { queueUsingCircularArray obj = new queueUsingCircularArray(); obj.enqueue(2); obj.enqueue(3); obj.enqueue(5); obj.enqueue(5); obj.enqueue(5); obj.enqueue(10); obj.display(); obj.dequeue(); obj.enqueue(5); obj.display(); obj.dequeue(); obj.display(); obj.dequeue(); obj.display(); obj.enqueue(5); obj.display(); obj.dequeue(); obj.dequeue(); obj.dequeue(); obj.dequeue(); obj.dequeue(); obj.display(); } }
@Hritik-07-n4f
@Hritik-07-n4f 5 күн бұрын
Thanks for the video, it opened new doors for me on how to use graph.
@remoanil8532
@remoanil8532 11 күн бұрын
this is so helpful
@siddheshwayal8104
@siddheshwayal8104 14 күн бұрын
Hey , My coding round is in this month I wanna ask that for DSA coding round can I use python language????
@Hasnaa-manaa-haii
@Hasnaa-manaa-haii 14 күн бұрын
Which youtube channel we refer to for learning commvault ?
@radhika687
@radhika687 15 күн бұрын
using dequeue instead of list in python code... nicely explained.
@jamespeterson7824
@jamespeterson7824 22 күн бұрын
Nice explanation for two pointer by finding entry point of LL cycle
@jamespeterson7824
@jamespeterson7824 22 күн бұрын
Nice explanation for duplicate element using two pointer
@teachtounknown
@teachtounknown 26 күн бұрын
nice explanation
@kanchanthakur9180
@kanchanthakur9180 27 күн бұрын
Awesome series.
@OjasvitaWagisha
@OjasvitaWagisha 27 күн бұрын
2nd ques is really good!
@kanchanthakur9180
@kanchanthakur9180 Ай бұрын
Amazing🤩
@biswadeepdatta5218
@biswadeepdatta5218 Ай бұрын
select score, dense_rank() over(order by score desc) as 'rank' from Scores. work smart
@saivarshitha2314
@saivarshitha2314 Ай бұрын
For 10 th question I have got 62 sir . could you please reply me whether it is correct or not
@womenincodeplusplus4388
@womenincodeplusplus4388 Ай бұрын
out of all solutions I found on KZbin, this is the best explanation. Thank you so much. !
@gaganverma750
@gaganverma750 Ай бұрын
when will you post dp series . i just love yr teaching .
@bungusopo
@bungusopo Ай бұрын
Wrong height is highest number of edges from a node to reach a leaf node
@therahul5304
@therahul5304 Ай бұрын
G
@TaybaKanwal-tm1wr
@TaybaKanwal-tm1wr Ай бұрын
Yes sir provide code example of composition
@omyele9315
@omyele9315 2 ай бұрын
Awsome
@biswanathbehera2265
@biswanathbehera2265 2 ай бұрын
Sir number send me please 🙏
@therahul5304
@therahul5304 2 ай бұрын
W
@shubhichandra3273
@shubhichandra3273 2 ай бұрын
Thank u....thank u so much...
@Aditya_Harsh
@Aditya_Harsh 2 ай бұрын
My approach: for(i=0; i<length; i++){ while(!stack.empty() && numbers[stack.peek()]<=numbers[i]) stack.pop(); if(stack.empty()) answer[i]=i+1; //Cause if stack is empty, then current number is greater than all it's previous elements else answer[i]=i-stack.peek(); //Stock span = Current index - index of next greater element to left stack.push(i); }
@vaibhav454
@vaibhav454 2 ай бұрын
Continue daily ques series
@Viral_arun
@Viral_arun 2 ай бұрын
badhiya samjhaya
@adityagawas4487
@adityagawas4487 2 ай бұрын
nice explanation
@MysteryPath-go7ky
@MysteryPath-go7ky 2 ай бұрын
Great Sir thank you so much for this and one more thing will you please provide syntax or codes explanation of aggregation, association and composition in c++???
@aswathis5902
@aswathis5902 3 ай бұрын
❤❤❤❤❤❤❤❤❤
@srijitsingha3184
@srijitsingha3184 3 ай бұрын
Mam/Sir, I am going to do the RHCE exam, I am 20 years old. Is RHCE exam passed out is enough for the job or anything else to be required ? Please help me and tell out what i shall do ?
@parush5381
@parush5381 3 ай бұрын
gazab explaination sir
@divyanshubaranwal3791
@divyanshubaranwal3791 3 ай бұрын
Can you also share the code please, i got an error and cannot solve ahead.
@divyanshubaranwal3791
@divyanshubaranwal3791 3 ай бұрын
This is a pattern now, I see a hard problem, I get disappointed, I come to you channel, I see you explain the problem. And boom! all of a sudden, it becomes a medium level problem. Same i felt for meeting room III, it was such a hard problem and you made it look so easy. Thank youuuu so much Ma'am😭😭😭💙💙💙 Please make something for the "Leetcode 679. 24 Game"😖
@Innoskrit
@Innoskrit 3 ай бұрын
Thanks, Keep learning ❤️ We will try to post one video on 24 Game.
@divyanshubaranwal3791
@divyanshubaranwal3791 3 ай бұрын
Such clean explanation. Simply wowwww. I watched the video till 4:12 and I was able to code it myself. So, much thanks for the good work. Subscribing NOW.
@Innoskrit
@Innoskrit 3 ай бұрын
Thank you
@aakashverma1124
@aakashverma1124 3 ай бұрын
Awesome ❤
@kareni7572
@kareni7572 3 ай бұрын
The representation of NI & I in the code is also super helpful and easy to visualise while coding or thinking of logic. Nice!
@Innoskrit
@Innoskrit 3 ай бұрын
Have you tried our text based free course on Merge Intervals? If not here is the link: learn.innoskrit.in/merge-intervals/
@kareni7572
@kareni7572 3 ай бұрын
@@Innoskrit Thank you for sharing!
@divyanshubaranwal3791
@divyanshubaranwal3791 3 ай бұрын
This was the 3rd video i have watched on this question. The cooldownPeriod = n + 1 part was sooooo unique and easy to understand. Thanks for the explanation (that too for free). This is simply god's work.😐💙
@prernasharma5380
@prernasharma5380 3 ай бұрын
Thank you ❤️
@divyanshubaranwal3791
@divyanshubaranwal3791 3 ай бұрын
Watched the neetcode guy solution first, it was good, but not intuitive, this was great.
@Innoskrit
@Innoskrit 3 ай бұрын
Thank you ❤️
@priyanshtiwari7126
@priyanshtiwari7126 3 ай бұрын
well explained sir
@therahul5304
@therahul5304 4 ай бұрын
When the next full dsa course batch will start?
@Innoskrit
@Innoskrit 4 ай бұрын
Do you really need it? There is so much free content already.
@AjeetKumar-oy4xu
@AjeetKumar-oy4xu 4 ай бұрын
Making a video program in c++ Students understand easily way
@Agmehendicreation
@Agmehendicreation 4 ай бұрын
Best explanation amazing, very helpful👌🙏
@krishjain8175
@krishjain8175 4 ай бұрын
Your code will fail for this test case Tree=[1,2,3,null,null,4,5] with target=3 Since 2 doesnt have any children there wont be any element present in the queue after 3 thus you cannot return the next element of 3.
@shivendragupta5791
@shivendragupta5791 4 ай бұрын
Good Explanation
@yuko1868
@yuko1868 4 ай бұрын
VERY NICE EXPLAINATION
@walkwithhackers
@walkwithhackers 4 ай бұрын
🤙👍🤟✌
@Ayush_kumar_1240
@Ayush_kumar_1240 4 ай бұрын
Good Explanation Mam
@B.techPsitWallah
@B.techPsitWallah 4 ай бұрын
Great