Index
- Theory
- FAQs
A data structure is a way of organizing(defining, storing & retrieving) the data so that the data can be used efficiently.
You must about the data-structure before implementing in application to implement in a better and optimized way.

Note: This section is for
- Theoretical comparison
- Implementation of standard DS structures
(For Problem & Solution refer Competitive Programming section)
Topics :
- Introduction (& Brief Comparison)
- Array vs Array-list
- Array & String
- Array: Way to declare
- Array: ways to copy
- Array: Advantages/Applications and disadvantages
- Stack[todo]
- Queue[todo]
- List & Linked-list
- Define the Structure and add element
- traversal
- Find loop
- reverse link-list
- Mid element
- Doubly Linked-list
- Tree
- Structure
- BST -Adding nodes
- Traversal
- DFS
- In-order
- Pre-Order
- Post-Order
- BFS
- DFS
- Map
List : Array Vs Linked List
Parameters of comparison :
- Speed of accessibility
- read/search
- insert/Delete – if tied to shifting other elements ,
- storage space required
| Parameter | Array | Linked List |
|---|---|---|
| Strategy | Static in nature (shortage or wastage of memory) | dynamic in nature (grow and shrink at runtime as per need) |
| Access &Traversal | Faster as index based | Slower as required traversal to the element,node by node |
| Insertion & Removal | Require shifting (if middle element is removed or added at middle) | Fastest Insertion and Deletion |
| Unit of storage | Uses dynamically allocated node to store data. | |
| Definition | Collection of Nodes |
Frequently asked DS Question Solutions and Tips for optimization.
- Arrays Questions
- Equilibrium Index of an array
- Find row number of a binary matrix having maximum number of 1s
- Tree
- Recursion
- Head recursion
- Tail recursion
- Tree recursion
- Recursion
- Utilities
- Occurrence of each element
- Using additional DS i.e Map
- Without using additional DS
- Max Length Sub-array
- brute-force
- hash-map
- convert character to upper case
- Matrix
- properties of matrix
- related to rows and columns
- Bit-wise Operation
- Single iteration find non-duplicate(XOR)
- Occurrence of each element
MFA questions