Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 440 Bytes

Stack.md

File metadata and controls

37 lines (25 loc) · 440 Bytes
  • expression execution
  • operand stack
  • method call stack

javascript -> register based C#, python, Java, PHP -> stack based VM

  • push
    • insert
  • pop
    • delete
  • peek
    • get - top
  • size()

ADT - Abstrat Data Type

abstract vs implementation


Stack ကို Array implementation လုပ်ကြည့်မယ်

array = 10; right = top;

push(1) [1]

push(2) [1, 2]

last element = top


Delimiter Matching