I applied online. The process took 1 week. I interviewed at Arista Networks (Vancouver, BC) in Jul 2024
Interview
1. HR screening round - to check the background and profile matching
2. 1 hour technical round - Started by discussing recent work experience, C questions on printf output prediction, DSA problem.
Interview questions [1]
Question 1
1. Char * pointer = "12345" // where is it stored?
2. Printf(%s, pointer) // Output?
3. Printf(%s, *pointer) //Output? Why segmentation fault?
4. Printf(%d, pointer) /Output?
5. Printf(%d, *pointer) //Output?
6. Printf(%c, *pointer) // Output?
7. Pointer[0] = 0 //is it allowed? Cannot modify why?
DSA problem. In an array that contains consecutive numbers find the (one) missing number. The count will be given. Example, array = 1,2,3,4,6,7,8,9 : count = 8. Ans = 5. Hint - find in O(logn). Binary search