Data Structure / Algorithm (1)

Ref

🫧 Data Structures


🫧 String

More
  • Subsequence and substring

  • Reverse and rotation in a string

  • Binary String

  • Palidrome

  • Lexicographic pattern

  • Pattern searching

🫧 Array

  • Searching

  • Sorting

More
  • Reverse Array

  • Rotation of Array

  • Rearranging an array

  • Range queries in the array

  • Multidimensional array

  • Kadane's algorithm

  • Dutch national flag algorithm

🫧 List

  • Singly Linked List

  • Circular Linked List

  • Doubly Linked List

Linked List

Implementation

ArrayList

🫧 Matrix/Grid

🫧 Stack(LIFO)

🫧 Queue(FIFO)

More
  • Circular queue

  • Double-ended queue (deque)

  • Priority Queue

Priority Queue

🫧 Tree

  • Binary Tree

  • Binary Search Trees(BST)

  • Traversals(in-order, pre-order, post-order)

More
  • Complete Binary Tree

  • Binary Search Tree

  • Ternary Search Tree

Binary tree

Trie

TreeMap

TreeSet

🫧 Heap

Max-Heap

Min-Heap

🫧 Hash

Hash Map

Linked Hash Map

HashSet

🫧 Graph

  • Representation(adjacency matrix/list)

  • BFS

  • DFS

More
  • Cycles in a graph

  • Topological sorting in the graph

  • Minimun Spanning tree in graph

Representation

Last updated