You're given 1 rabbit at first month. Every month rabbit produce 1 rabbit that have cooldown of 2 month before that new rabbit can produce new rabbit. Find num of rabbit in n month.
Breaking an Integer to get Maximum Product (GfG)
Given 2 1, where 2 is number of variant, and 1 is the number of comparation. Find the num of combination that all are different.
(yeah it's hard to understand, failed to find the formula too :( )
Ex: 2 1 => (A, B) x (B, A) => 2
Ex: 2 2 => (AA, BB) x (BB, AA) => 2
Ex: 3 2 => 18
Given cypher like {'a':001, 'b': 110, ...} and a sequence 110000110 , find number of combinations of cypher interpretation