CTS Company Logical Reasoning Number Series

1. Given the following functions
(1) f(n a b c ) = ac if n=1
(2) f(n a b c) = f( n-1 a c b) + f( 1 a b c) + f( n-1 b a c ) if n > 1

Then what is the value f( 4 a b c ) = ?

Read Solution (Total 4)

CTS Other Question

ABCD
QCDB+
-------------
QDBAC
---------------
Write a short code using C++ to print out all odd number from 1 to 100 using a for loop