bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
commit b88ffd59d45616d17a48a575e8ea7da039e523fb
parent 227071161485e3985d181a134e1300ed64f25b2e
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Wed,  7 Oct 2026 23:04:44 +0530

Fix pop procedure syntax and return value
Diffstat:
Msemester_2/algorithms/algo_029.md | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/semester_2/algorithms/algo_029.md b/semester_2/algorithms/algo_029.md @@ -6,15 +6,15 @@ ## Algorithm ``` -procedure pop(stack[], top, n) +Procedure pop(stack[], top) begin - if(top = -1) + if (top = -1) then write("Stack is empty, deletion not possible."); - return; + return NULL; else x ← stack[top]; top ← top - 1; return x; - endif; + endif end procedure -``` -\ No newline at end of file +```