Leetcode Blog
AboutSearchTags
  • Dec 8, 2023

    Count of Smaller Numbers After Self - MergeSort based concise solution

    Array     Binary Indexed Tree     Binary Search     C++     Divide and Conquer     Hard     Merge Sort     Ordered Set     Segment Tree    
  • Nov 26, 2023

    Largest Submatrix With Rearrangements - Permute histogram bars to maximize area

    Array     C++     Greedy     Matrix     Medium     Sorting    
  • Nov 22, 2023

    Diagonal Traverse II - Short and clean five lines of code using TreeMap

    Array     C++     Heap (Priority Queue)     Medium     Ordered Map     Sorting    
  • Nov 12, 2023

    Bus Routes - BFS solution with intuition

    Array     Breadth-First Search     C++     Hard     Hash Table    
  • Nov 11, 2023

    Design Graph With Shortest Path Calculator - Dijkstra and Floyd-Warshall both solutions with intuition

    C++     Design     Graph     Hard     Heap (Priority Queue)     Shortest Path    
  • Nov 10, 2023

    Restore the Array From Adjacent Pairs - Create graph and run DFS

    Array     C++     Depth-First Search     Hash Table     Java     Medium    
  • Nov 2, 2023

    Count Nodes Equal to Average of Subtree - Simple recursion in O(n) TC

    Binary Tree     C++     Depth-First Search     Medium     Recursion     Tree    
  • Nov 1, 2023

    Find Mode in Binary Search Tree - Two solutions: O(h) space and O(1) space

    Binary Search Tree     Binary Tree     C++     Depth-First Search     Easy     Iterator     Tree    
Previous         Page: 3 of 28         Next

Leetcode Blog

  • Leetcode Blog
  • piyush01123

A blog of all my leetcode discussion posts.