Skip to content

Catalan Number

2 posts1 contributor

+ FollowBe the first to follow this
Write about it

Articles about Catalan Number

  1. Count Prefix-Balanced Binary Strings - Java Explanation

    Count the number of prefix-balanced binary strings of length 2 * n containing exactly n ones and n zeros, where every prefix has at least as many ones as zeros. This article explains the Dynamic Programming approach in Java, including the DP transition, base case, dry run, Catalan number connection, and time and space complexity.

    Sandhiya PriyaSandhiya Priya2,1981,000
  2. Number of BSTs From Array

    Calculate the number of unique Binary Search Trees (BSTs) possible for each element in an array as the root. Leverages Catalan numbers for efficient computation.

    Sandhiya PriyaSandhiya Priya3561,000