wiki/스택(자료구조).md

377 B

title description published date tags editor dateCreated
스택(Stack) 자료구조 스택 true 2020-09-22T07:26:15.886Z 컴퓨터 markdown 2020-09-22T07:12:51.265Z

스택(Stack)

LIFO(Last in first out)

trait Stack<T>{
  fn push(&mut self,item :T) -> Result<()>;
  fn pop(&mut self) -> Result<T>;
  fn is_empty() -> bool;
  fn size() -> usize;
}