spoj solutions and other codes in python, C , C++
whats this!
The function f=lambda n:((1+p)**n-(1-p)**n)/(2**n*p) represents the closed-form expression for the nth element in the Fibonacci series
First of all note that "the number of ways of selecting a playlist such that no two successive tracks are selected" is forming the Fibonacci series..
whats this!
ReplyDeleteThe function f=lambda n:((1+p)**n-(1-p)**n)/(2**n*p) represents the closed-form expression for the nth element in the Fibonacci series
ReplyDeleteFirst of all note that "the number of ways of selecting a playlist such that no two successive tracks are selected" is forming the Fibonacci series..
Delete