LinkedIn Interview Experience | Set 2 (On-Campus)

Online coding 1 hr, 3 Questions.

1. We have to implement getIntComplement() function , that will give complement of an given integer .

3. There is a particular sequence only uses the numbers 1, 2, 3, 4 and no two adjacent numbers are the same.
Write a program that given n1 1s, n2 2s, n3 3s, n4 4s will output the number of such sequences using all these numbers.
Output your answer modulo 1000000007 (10^9 + 7).


Contact Us