Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Last active November 7, 2018 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/11c150795d917eebe98913f1dab4675d to your computer and use it in GitHub Desktop.
Save gdyrrahitis/11c150795d917eebe98913f1dab4675d to your computer and use it in GitHub Desktop.
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