Houman's Digital Garden 🌱

Recent Updates

  • Different types of Databases

    May 09, 2025

  • Boyce-Codd Normal Form (BCNF)

    May 09, 2025

  • Functional Dependencies

    May 09, 2025

See 40 more →

        • Binary Exponentiation
        • Euclidean Algorithm
        • Find all prime factors of a given number
        • Sieve of Eratosthenes
        • Bellman-Ford Algorithm
        • Dijkstra's Algorithm
        • Floyd-Warshall Algorithm
        • Introduction to Graph Theory
        • Is Graph Bipartite?
        • Kosaraju's Algorithm for Strongly Connected Components
        • Kruskal's Algorithm
        • Topological Sorting in Directed Acyclic Graphs (DAG)
        • Combinatorics
        • Principle of Inclusion - Exclusion
        • Rabin-Karp Algorithm
      • 9 Different Types of 0/1 Knapsack
      • Algorithms Content Page
      • Binary Lifting
      • Binary Search
      • Digit DP
      • Dynamic Programming
      • Ternary Search
      • Deadlock
      • Pub-sub Messaging
      • Binary Indexed Tree
      • Data Structures Content Page
      • Disjoint Set (Union Find)
      • Monotonic Stack
      • Segment Tree
      • Trie
      • XOR Trie
        • Boyce-Codd Normal Form (BCNF)
        • Functional Dependencies
        • Third Normal Form (3NF)
      • Different types of Databases
      • pgSQL Control Structures
      • Relational Algebra
      • SQL Basics
      • SQL Triggers
      • Stored Procedure
      • Useful Prompting Techniques
        • Instagram
    Home

    ❯

    Algorithms

    ❯

    Math

    ❯

    Principle of Inclusion - Exclusion

    Principle of Inclusion - Exclusion

    29 words, 1 min read
    Last updated at May 06, 2025
    • math
    • algorithms

    Introduction

    Implementation

    Complexity

    • Time complexity:
    • Space complexity:

    Resources

    1. Count Pairs With XOR in a Range - Leetcode
    2. Number of Strings Which Can Be Rearranged to Contain Substring - Leetcode

    • Introduction
    • Implementation
    • Complexity
    • Resources

    Backlinks

    • Algorithms Content Page

    Graph View

    Created by Houman Wai | Powered by Quartz v4.4.0 © 2025

    • GitHub
    • LinkedIn