Published: October 16, 2025
15
61
404

๐Ÿ‘ฉโ€๐Ÿ’ป Practice these 170+ Algorithms in โ C/C++ โ Java โ Python โ JavaScript Or, any language of your choice Stay in top 5% of programmers.

Image in tweet by Swapna Kumar Panda

โžŠ Arrays โž€ Creating an Array โž Iterate through Array โž‚ Get an Element โžƒ Search an Element โž„ Insert Element(s) โž… Delete Element(s) โž† Filter an Array โž‡ Fetch a Sub-Array โžˆ Merging Arrays โž‰ Reverse Array โž€โž€ Rotate Array

โž‹ Linked Lists โž€ Creating a Linked List โž Iterate through Linked List โž‚ Get an Element โžƒ Find an Element โžค Insert Element(s) โž„ At Start โž… At End โž† At Anywhere โžค Delete Element(s) โž‡ From Start โžˆ From End โž‰ From Anywhere โž€โž€ IsEmpty โž€โž

โžŒ Stacks โž€ Push โž Pop โž‚ IsEmpty โžƒ IsFull โž„ Peek โž… Size Implement the stack using both Array and Linked List.

โž Queues (also Priority Queue) โž€ Enqueue โž Dequeue โž‚ IsEmpty โžƒ IsFull โž„ Peek โž… Size โž† Update Priority * Implement the queue using both Array and Linked List. ** Implement these for a Priority Queue

โžŽ Hash Tables โžค Hash Function โž€ Division Method โž Multiplication Method โž‚ Universal Hashing โžค Hash Collision โžƒ Collision Resolution โžค Open Addressing โž„ Linear Probing โž… Quadratic Probing โž† Double Hashing

โž Trees โž€ Traversal โž Height of a Node/Tree โž‚ Depth of a Node โžƒ Degree of a Node โžค Traversal โž„ In Order โž… Pre Order โž† Post Order โž‡ Level Order โžˆ Insert โž‰ Delete

โž Binary Search Tree โž€ Formation of a BST โž Insert a Node โž‚ Delete a Node โžƒ Search for a Node โžค Traversal โž„, โž…, โž†: In Order, Pre Order, Post Order โž‡ & โžˆ Find Min, Max โž‰ & โž€โž€ Find Predecessor & Successor โžค Balance a BST โž€โž AVL Tree โž€โž‚ Red-Black

โž‘ Heaps โž€ Heapify โž Insert Element โž‚ Delete Element โžƒ Peek (Max/Min Element) โž„ Extract (Max/Min Element) Implement Min Heap, Max Heap, Binary Heap, and Fibonacci Heap.

โž’ Suffix Tree โž€ Construct a suffix tree โž Pattern Matching โž‚ Substring Checking โžƒ Longest Common Substring โž„ Longest Repeated Substring โž… Substring Frequency โž† Edit Distance โž‡ Suffix Links โžˆ Finding all palindromic substrings

โž“ Trie โž€ Insertion in a Trie โž Search for a word in a Trie โž‚ Prefix Search โžƒ Delete a word from the Trie โž„ Find the count of a word in a Trie โž… Longest Common Prefix

โžŠโžŠ Disjoint Set โž€ Union โž Find โž‚ Path Compression โžƒ Union by Rank โž„ Union by Size

โžŠโž‹ Graphs โžค Adjacency Matrix โž€ Add Edge โž Remove Edge โžค Adjacency List โž‚ Add Edge โžƒ Remove Edge โžค Traverse Nodes โž„ Depth First Search โž… Breadth First Search โžค Shortest Path โž† Dijkstra's Algorithm โž‡ Floyd-Warshall Algorithm

โžŠโžŒ Searching Algorithms โž€ Linear Search โž Jump Search โž‚ Binary Search โžƒ Interpolation Search โž„ Exponential Search โž… Ternary Search

โžŠโž Sorting Algorithms โž€ Bubble Sort โž Selection Sort โž‚ Insertion Sort โžƒ Merge Sort โž„ Quick Sort And, a few advanced ones, โž… Binary Insertion Sort โž† 3-way Merge Sort โž‡ 3-way Quick Sort โžˆ Counting Sort โž‰ Radix Sort โž€โž€ Bucket Sort โž€โž Heap Sort โž€โž‚ Shell Sort โž€โžƒ

โžŠโžŽ Greedy Algorithms โž€ Greedy Coin Change Problem โž Activity Selection Problem โž‚ Fractional Knapsack Problem โžƒ Huffman Coding

โžŠโž Backtracking Algorithms โž€ Graph Coloring โž Hamiltonian Path/Cycle โž‚ Subset Sum Problem โžƒ Permutation Generation

โžŠโž Dynamic Programming โž€ Fibonacci Sequence โž Longest Common Subsequence โž‚ Knapsack Problem โžƒ Matrix Chain Multiplication

@swapnakpanda Amazing list๐Ÿ”ฅmastering algorithms sharpens the way you think, not just code. Language is just syntax, logic is universal ๐Ÿ’ช Thanks for sharing this amazing list.

@RShmider Absolutely Ram. I like to solve puzzles and explore algorithms in my free time.

@swapnakpanda Wow, this thread is quite lengthy and packed with valuable information.

@csaba_kissi Thanks Csaba.

@swapnakpanda Excellent Share, Swapna ๐Ÿ™Œ๐Ÿป

@codewithhajra Thanks Hajra.

@swapnakpanda Thanks for putting this together ๐Ÿ™Œ

@_jaydeepkarale This is the list I keep referring to whenever I come across a new algorithm. Good way to compare and find the better or alternative ways.

@swapnakpanda Nice list. Binary search is one of my favorites

@systemdesignone Itโ€™s easy to relate. One of my favorites too.

@swapnakpanda Ohhh ๐Ÿ˜ฎ

@codeharmann Good or bad?

@swapnakpanda Excellent share. Swapna!

@Shefali__J Thanks Shefali.

@swapnakpanda Fantastic list Swapna!

@RitikaAgrawal08 Thanks for checking it out Ritika.

Share this thread

Read on Twitter

View original thread

Navigate thread

1/34