Lead Architect Interview Questions

8,748 lead architect interview questions shared by candidates

A file has billions of numbers. Each number in a line. Write a program which will give output output = sum(ai*bi) for i 1 to n where bi is the number in ith line. ai = +1 if sum is even till ith number and -1 if sum is odd till ith number. Assume that there is no overflow.
avatar

Senior Architect

Interviewed at Perfios Software

3.9
Dec 6, 2018

A file has billions of numbers. Each number in a line. Write a program which will give output output = sum(ai*bi) for i 1 to n where bi is the number in ith line. ai = +1 if sum is even till ith number and -1 if sum is odd till ith number. Assume that there is no overflow.

Viewing 3251 - 3260 interview questions

Glassdoor has 8,748 interview questions and reports from Lead architect interviews. Prepare for your interview. Get hired. Love your job.