X-Treme-Hub
Drag an Element and See its Children
Data Structures and Algorithms
Learn DS & Algorithms
A computer program is a collection of instructions to perform a specific task. For this, a computer program may need to store data, retrieve data, and perform computations on the data.
A data structure is a named location that can be used to store and organize data. And, an algorithm is a collection of steps to solve a particular problem. Learning data structures and algorithms allow us to write efficient and optimized computer programs.
Linked List
Linked Lists, similar to arrays, are a data structure that allow you to store a collection of items in a specific order. Unlike arrays, elements in a linked list are not stored at contiguous memory locations and are instead stored in nodes that are linked using pointers
Maps / Dictionaries
Maps/Dictionaries Maps (also known as Dictionaries) are data structures stores a collection of key-value pairs. Each key is unique and allows for quick access to values. A real life example of a map could be storing the grades for students in a class (student name is key, grade is value).
Trees
Trees are a common non-linear data structure. Trees organize hierarchically, instead of storing data in a linear way. A tree is normally represented by nodes which contain a value and point to other nodes.