Squiggly brackets (Contest)
Squiggly brackets easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Squiggly brackets easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Problem Statement :
Morgan Stark asks Peter for help in her HW. She is given an integer n representing the number of pairs of squiggly brackets. Her task is to find the number of all combinations of well- formed(balanced) squiggly brackets. Input The input contains only a single integer denoting the value of n.
Constraints:- 0 ≤ n ≤ 7 Output Print the number of squiggly brackets. Example Sample Input:- 1
Sample Output:- 1
Explanation:- {}
Sample Input:- 2
Sample Output:- 2
Explanation:- {}{} {{}}
link: