What are your favorite leetcode problems that one can use combinatorics to solve? An example is the coin change problem. Typically this is solved with dynamic programming, but using generating functions yields an efficient algorithm that uses only a linear amount of memory. Anyone know of other questions with cool mathematical solutions? Yoe 6 Tc ~400
I have favorite flavors of ice cream, not leetcode problems.
What are your favorite flavors of ice cream
Solving counting the number of spanning trees by spectral analysis on the laplacian of the graph
Even or odd
Could you elaborate?
Is number even or odd