Computer Specialist Interview Questions

5,373 computer specialist interview questions shared by candidates

(1) Back-propagation; (2) overfit vs underfit; (3) implementation of one of the steps in Canny edge detection using graphs; (4) closed form formula to solution of linear regression; (5) write code for K nearest neighbor algorithm (6) vanishing gradient vs exploding gradients due to choice to relu() vs sigmoid()
avatar

Computer Vision Engineer

Interviewed at Flipkart

3.8
Oct 13, 2016

(1) Back-propagation; (2) overfit vs underfit; (3) implementation of one of the steps in Canny edge detection using graphs; (4) closed form formula to solution of linear regression; (5) write code for K nearest neighbor algorithm (6) vanishing gradient vs exploding gradients due to choice to relu() vs sigmoid()

The second question asks you to refactor a function in O(n^2) and make it O(n), basically by eliminating the nested for-loop. This is the function you're asked to refactor: int solution(int *A, int N) { int result = 0; int i, j; for (i = 0; i < N; i++) for (j = 0; j < N; j++) if (A[i] == A[j]) if (abs(i - j) > result) result = abs(i - j); return result; }
avatar

Computer Science Intern

Interviewed at Spire Global

2.7
May 18, 2015

The second question asks you to refactor a function in O(n^2) and make it O(n), basically by eliminating the nested for-loop. This is the function you're asked to refactor: int solution(int *A, int N) { int result = 0; int i, j; for (i = 0; i < N; i++) for (j = 0; j < N; j++) if (A[i] == A[j]) if (abs(i - j) > result) result = abs(i - j); return result; }

Viewing 21 - 30 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 5,373 interview questions and reports from Computer specialist interviews. Prepare for your interview. Get hired. Love your job.