Rosalind - Maximum Matchings and RNA Secondary Structures
rosalindProblem:
Please find the problem here.
Solution:
Suppose we have 3 A and 2 U, the first U can choose from 3 A, the second choose from 2 A, therefore, the number of matches for these 3 A and 2 U is 3 x 2 = 6. In general, the answer is the falling factorial.
Code: