An open API service indexing awesome lists of open source software.

https://github.com/mburakeker/store-multiple-stacks-in-array


https://github.com/mburakeker/store-multiple-stacks-in-array

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

In this task, I created ArrayOfStacks with following properties:
* Stack[] stackArray
* int[] tops as storing the top indexes of each stack
* stackCount with the expression of stackArray.Length
Adding a new stack requires resizing so Add(Stack stack) method resizes stackArray and sets the highest index of stackArray to given stack input.
T this[int index] allows you to get the element at given index.