マガジンのカバー画像

Algorithm

5
運営しているクリエイター

2019年8月の記事一覧

Stack

A stack is an abstract data type that allows operations to store and remove values in a collection of elements. All operations have a runtime complexity of O(1) because you can only delete or add an element in the top of the stack. Elements