Stack Data Structure Implementation | Java Course in Tamil | Logic First Tamil
Вставка
- Опубліковано 15 вер 2024
- Java Playlist,
• Learn Java in Tamil
C Interview program playlist,
• C Interview Programs i...
C programming in one video,
• C Programming in Tamil...
C programming playlist
• Introduction to C prog...
C++ Playlist link
• C++ Programming in Tamil
English channel link,
/ @logicfirst31
Your simple way of explanation boosting our interests to learn and code more. Thanks a lot!
Mam.. ellam Data structures (LinkedList,que,etc)um nadathidunga mam..romba use full ah irukku.. Thank you mam..
sure.pls share with ur friends
excellent akka enga mam vida super a solli kudukarenga. love u
23 minutes epdi pochu nae teriyala... Your explanation is amazing!!!
Nice
Detailed view in stack 👍
Keep post with letest java 8 👍
pls share with ur friends
நன்றி அக்கா
Good explanation
Thanks mam
Mam,Are you working in product based company?
Superb👌👌
Mam I'm not using an IDE while executing this code, cannot find symbol error how to resolve
superbzzz mam..
thanks a lot mam.....
Mam queue la ,first in first out thana sonninga , appo epdii mam dequeue (like Stack , If(tos>0)
return s[tos--];)
class varum (dequeue panna firstla irukara element thana print aaganum),naa try panna but enakku epdi panrathunu terla mam
you should dequeue from beginning. try to do that. very easy only
@@LogicFirstTamil
Atha for loop use pani poten correct ah vanduchi,
Apdi podlama mam,
Void pop()
for(tos=0;tos
Akka Queue full explaination give pannunga akka ungalukku Punniyamaa pokum..neenga teach panna stack enakku super ah understand pannen.Plz Give the queue And you must rply me.
Queue um athey maari thn bro first la irundu display pana oru loop kula array output podra mari irukum bro
clear explanation
Sooper b mam
Akka data structure video full videos iruka ongda
Akka char vatchu try panna char print aagama athoda ASCII value print aaguthu
@Logic First Tamil
Atha for loop use pani poten correct ah vanduchi,
Apdi podlama mam,
Void pop()
for(int i=0;i
For pop 🎂
Correct ah mam
Maam ithu normal program thaana maam class kulla methods create panni methods kulla some functions write panni main la call panrom ithukum data structure kum stack kum enna link maam explain pannunga maam plsss
This itself is stack ds. Data structure na onnum special illa. It s also a class with methods like this.
I got error like this "Can't find symbol"
Same here
hello mam
What is the purpose of creating a package?
chk java first program video
👍
mam stack constructer edhuku creater pandrom athoda useh intha programe la illa stack constructer la only tos value tha assign pandrom atha stack class le assign pannikalamla....???
this is the right way to do.
Tq u for solving the doubt mam...love of your works ❤️
Mam character vachi try pannan...but s1.push(a); nu kodutha "a" la error kaatudhu...err type:"a cannot be resolved to a variable"...push la char item dhan koduthurkan but en varala nu therila mam?
shld give 'a'
@@LogicFirstTamil thanks mam 🤧👍
Mam nenga stack ah vera class use pani podlam la
Apdi potalum crrct thanu,
yes u can. In fact its better to do tat way
Stack Ku header file import pannanuma?
Can u please explain recursion
chk my c recusion video and merge sort video
Implement a stack for char datatype
package oop;
public class stackDemo {
public static void main(String args[]) {
Stack v1 = new Stack();
v1.push('l');
v1.push('o');
v1.push('g');
v1.push('i');
v1.push('c');
System.out.println( v1.pop());
}}
package oop;
public class Stack {
char v [] = new char [10];
int tos;
Stack() {
tos =-1;
}
void push(char item) {
if(tos==9) {
System.out.println("The stack is full");
}
else {
v[++tos]=item;
}
}
char pop() {
if(tos>=0) {
return v[tos--];
}
else {
System.out.println("The stack is empty");
return (char) -1;
}
}
}
I have done que maam but i used another variable by intializing 0 and returned like number++ 😂 is it correct maam
Maam reply for this please
bro, fully implement and test it. If it works for all cases, then its good. You know how a queue should behave right? If not check my datastructure queue video
Na patha varaiyum entha playlist la entha video tha konjam puriyala mam please replyme😕
i have simplified it as much as possible. pls try to rewatch and understand each line i say. dont progress further if you dont understand something. grab a paper, work it out and understand.
Akka ungakita na learn pannanum nu nenakiren ungala yepudi contact pannurathu ..
@@umesh4678 sorry. m not taking personal classes bro
@@LogicFirstTamil ok 😕
Enaku en purilaya 🥲
Watch from beginning. Whenever you are not getting clearly, dont continue to watch. Stop there, take pen and paper, write down the example and try to understand that point. Just continuing to watch won't help
Plss reply me mam
Hey mam,
void push(int item)
{
if(tos==9)
{
Sysout("Stack is Full");
}
}
what about the index 9th value takes place. The position of index 9 will remain empty...
if tos is 9, it means a value is already there in index 9. pls see explanation again
@@LogicFirstTamil ok thank you so much
@Logic First Tamil
Atha for loop use pani poten correct ah vanduchi,
Apdi podlama mam,
Void pop()
for(int i=0;i
why are printing inside push method? You should only push data within push method.
@@LogicFirstTamil
Sorry mam that is pop function in stack()
@@LogicFirstTamil
Now correct ah mam
@@LogicFirstTamil
I wrongly typed it as push