Combinatorics | LeetCode Problems

34 Combinatorics solutions to LeetCode solutions.

Combinatorics Problems View all solutions →

Unique Paths

#62 Medium

Poor Pigs

#458 Hard

Find the Derangement of An Array

#634 Medium

Number of Music Playlists

#920 Hard

Ugly Number III

#1201 Medium

Count All Valid Pickup and Delivery Options

#1359 Hard

Probability of a Two Boxes Having The Same Number of Distinct Balls

#1467 Hard

Number of Ways to Reorder Array to Get Same BST

#1569 Hard

Number of Sets of K Non-Overlapping Line Segments

#1621 Medium

Count Sorted Vowel Strings

#1641 Medium

Kth Smallest Instructions

#1643 Hard

Count Ways to Make Array With Product

#1735 Hard

Minimum Number of Operations to Make String Sorted

#1830 Hard

Sum of All Subset XOR Totals

#1863 Easy

Number of Ways to Rearrange Sticks With K Sticks Visible

#1866 Hard

Count Ways to Build Rooms in an Ant Colony

#1916 Hard

Vowels of All Substrings

#2063 Medium

Find Triangular Sum of an Array

#2221 Medium

Count the Number of Ideal Arrays

#2338 Hard

Count the Number of Good Subsequences

#2539 Medium

The Number of Beautiful Subsets

#2597 Medium

Count the Number of K-Free Subsets

#2638 Medium

Number of Ways to Reach Destination in the Grid

#2912 Hard

Distribute Candies Among Children III

#2927 Hard

Distribute Candies Among Children I

#2928 Easy

Distribute Candies Among Children II

#2929 Medium

Count the Number of Good Partitions

#2963 Hard

Number of Subsequences with Odd Sum

#3247 Medium

Find the Count of Good Integers

#3272 Hard

Count Number of Balanced Permutations

#3343 Hard

Count the Number of Arrays with K Matching Adjacent Elements

#3405 Hard

Subsequences with a Unique Middle Mode II

#3416 Hard

Check If Digits Are Equal in String After Operations I

#3461 Easy

Check If Digits Are Equal in String After Operations II

#3463 Hard