-
-
Save gdyrrahitis/11c150795d917eebe98913f1dab4675d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private readonly T[] _stack; | |
private readonly int _size; | |
private int _topMostItemIndex = -1; | |
public Stack(int size = 16) | |
{ | |
_size = size; | |
_stack = new T[size]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment