bsc

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

algo_026.md (341B)


      1 # algo_026
      2 
      3 ### Problem Statement
      4 
      5 > Write an algorithm to check if the stack is full or not.
      6 
      7 ## Algorithm
      8 ```
      9 procedure isFull(top, n)
     10 begin
     11     /* n represents stack size,
     12        having index 0 to n-1 and 'top' is an index variable. */ 
     13 
     14     if(top = n - 1)
     15         return true;
     16     else 
     17         return false;
     18     endif
     19 end procedure
     20 ```
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror