Your way of explaining and presentation is great bro. you deserve more views but small suggestion after you explain the code if you code along in leetcode it will be more easier for us to understand rather than seeing the final code so it might increase the views.
i do not plan on coding along in leetcode, there are a lot of youtubers who do the exact same thing. languages keep changing with time, so I would focus primarily on problem solving. You have so many chat GPTs available too which can write the code for you.
When using a single queue we can make either push or pop efficient it doesn't have to be push only , so isn't it better we use a single queue or over 2 queues ?
class StackImplUsingQueues { Queue q1 = new LinkedList(); Queue q2 = new LinkedList(); public int pop() { if (q1.peek() == null) { System.out.println("The stack is empty, nothing to return"); int i = 0; return i; } else { int pop = q1.remove(); return pop; } } public void push(int data) { if (q1.peek() == null) { q1.add(data); } else { for (int i = q1.size(); i > 0; i--) { q2.add(q1.remove()); } q1.add(data); for (int j = q2.size(); j > 0; j--) { q1.add(q2.remove()); } } }
I wonder why your videos are not getting good views. Your way of explanation is awesome. Keep uploading more videos.
I will try my best
Your way of explaining and presentation is great bro. you deserve more views but small suggestion after you explain the code if you code along in leetcode it will be more easier for us to understand rather than seeing the final code so it might increase the views.
i do not plan on coding along in leetcode, there are a lot of youtubers who do the exact same thing.
languages keep changing with time, so I would focus primarily on problem solving.
You have so many chat GPTs available too which can write the code for you.
Nice explanation sir ❤
Very detailed explanation. Thank you
sir u r too good never give up ur awesome
Best explanation ever!
Excellent explanation ... Thank you so much
Excellent explanation.Guddos
I cant thank you enough❤
great explaination
Hey nickil which software tool you use for visualizations and any drawing pad?
That is GoodNotes 6
When using a single queue we can make either push or pop efficient it doesn't have to be push only , so isn't it better we use a single queue or over 2 queues ?
amazing dude, I'm gonna subscribe you
Best video
Best !!!
Sir Please Organise the playlist or videos with video no sir if I want to learn arrays in Java then I could find the video of main understand sir
have you checked the playlists on my channel?
Sir, I wanted to see the code for stack using 2 queues😢
Did you check the code provided in the video description?
sir there is no code of stack using 2 queues
class StackImplUsingQueues {
Queue q1 = new LinkedList();
Queue q2 = new LinkedList();
public int pop() {
if (q1.peek() == null) {
System.out.println("The stack is empty, nothing to return");
int i = 0;
return i;
} else {
int pop = q1.remove();
return pop;
}
}
public void push(int data) {
if (q1.peek() == null) {
q1.add(data);
} else {
for (int i = q1.size(); i > 0; i--) {
q2.add(q1.remove());
}
q1.add(data);
for (int j = q2.size(); j > 0; j--) {
q1.add(q2.remove());
}
}
}
your way to explain theoritical is good but explain the code you more improve please.