Written round
Consisted of 10 questions of 90 minute duration consisting questions on C, FAFL, Algorithms, probability, permutaion and combination, microprocessors.
Coding round
2 questions with 3 hr duration
1. Long question, I don't remember fully. I'll just give input/output examples. It was basically on string decoding. If jon2snow3 is there the decoded string will be jonjonsnowjonjonsnowjonjonsnow. Given a string and an integer k we have print the kth character in the decoded string
input:
jon2snow3
8
output:
n
2. Given an array and an integer k return the number of contiguous sub arrays whose sum is divisible by k.
input format:
n k
<n elements of the array>
input:
4 5
10 0 4 5
output:
4
explaination: {10},{0},{10,0},{5} are the sub arrays with sum divisible by 5.
Technical+HR interview