Given two integers m and n , n>=m. Find total number of structurally correct BSTs possible with all numbers between m and n (inclusive). For example, m=3, n=5 then answer is 5. 3 5 3 5 4 \ / \ / / \ 4 4 5 3 3 5 \ / / \ 5 3 […]
Given two integers m and n , n>=m. Find total number of structurally correct BSTs possible with all numbers between m and n (inclusive). For example, m=3, n=5 then answer is 5. 3 5 3 5 4 \ / \ / / \ 4 4 5 3 3 5 \ / / \ 5 3 […]