bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

root / semester_2 / algorithms / algo_030.md

algo_030.md (284B)


      1 # algo_030
      2 
      3 ### Problem Statement
      4 
      5 > Write an algorithm to push to stack (Linked representation of stack)
      6 
      7 ## Algorithm
      8 ```
      9 procedure push(Stack, val)
     10 begin 
     11     ptr ← getNode();
     12     info(ptr) ← val;
     13     next(ptr) ← stack;
     14     stack ← ptr;
     15     return(stack);
     16 end procedure
     17 ```
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror