Pilas dinamicas con stack
CLAUDIA NEGRETE · 1,150 words · 6 min read · EN

Below is the complete, readable transcript of Pilas dinamicas con stack by CLAUDIA NEGRETE on YouTube. Read the full text, copy any part you need, or generate a transcript for any video with our free tool.
Hello, hello, my dear programmers! On this occasion, I bring you the handling of dynamic stacks with the constructor called `stack`, that reserved word that already comes in `chan` in consoles and in fact also comes in other languages. So let's see the complete code of how to handle these stacks dynamically. So let's begin.
As we can see, I already have a project created that is precisely called " dynamic stacks". For dynamic stacks, precisely with `stack`, we must add this library. It insists on `collection`. Yes, if you already have it, don't remove it because in these, it insists on `connection`, precisely where this constructor called `stack` is found.
This means stacks. If I give it the name of my stack, which in this example is called `no`, and I'm not setting a limit, which means that this can grow or shrink according to us programmers. What comes next? After that, I input a value of type numeric. This denotes that it is called `numbers` and will
contain numeric values. After that, I am making the call to my procedure which is called `insert`. I am passing it as a parameter by reference. It is called `numbers`. I'm passing my variable called num as a parameter. After that, I enter or request another numeric value and call the procedure called insert again. Then I call
my procedure called print, and here, if you notice, it's called numbers. I'm not passing it by reference to parameters anymore, but only by parameters, because I'm not going to make any modifications if I'm going to input or capture the value I want to locate, to know if it's contained in my stack. After that, I call
the procedure called search, and I pass numbers as a reference parameter, and my variable passed as a parameter is called localize. Finally, I call my procedure called no less than 10, passing it by reference. I do it this way because my stack is declared as a local variable, and since my stack will have changes within the values
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.