Tag Archives: data structure

(JavaScript) Stack implementation

Simple stack implementation for JS

Posted in JavaScript | Also tagged , , , , , , | Leave a comment

(C++) linked_list class (both the header file and the template file)

This is a linked list that can be used like an array where instead of using [] after the reference you just used .get() (and some other methods) but now you don’t have to worry about sizing. For example, with an array you would do: cout

Posted in C++ | Also tagged , , , , , | Leave a comment

Binary Search Trees (BSTs) in C#

A Binary Search Tree (also known as a BST) is a data structure that contains ordered nodes. Each node contains an element, a left node and a right node. The nodes on the left are all nodes that contain values lower than the element and the nodes on the right contain values higher than the [...]

Posted in C# | Also tagged , , , , , , , , , , , , , | 3 Comments