Arista Networks Interview Experience
Summary
I interviewed with Arista Networks, going through two technical rounds that assessed my coding skills on problems like String to Integer (atoi) and strlen implementation, alongside questions on projects, OS concepts, and networking. I was ultimately rejected.
Full Experience
I received a call from a recruiter at Arista Networks, which led to two technical interview rounds.
First Round: For the first technical round, I was presented with the LeetCode problem 'String to Integer (atoi)'. In addition to this coding challenge, the interviewer delved into technical questions about my previous projects. Topics covered included debugging tools, memory sanitizers, segmentation faults (SEGV), and compiler functionalities.
Second Round: The second round was more focused on system-level concepts. I was asked questions pertaining to multithreading, Inter-Process Communication (IPC), various shell commands, and networking principles. A practical coding task involved implementing the strlen() function in C.
Overall, I found the difficulty level of the questions to be easy. However, there was a strong expectation for practical and in-depth knowledge of networking. Despite my performance, the final verdict was a rejection.
Interview Questions (2)
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer. The function should handle leading whitespace, an optional sign, and digits, stopping at the first non-digit character. It must also consider edge cases like empty strings, non-numeric strings, and integer overflow/underflow.
Implement the standard C library function size_t strlen(const char *str), which computes the length of the string str. The length is defined as the number of characters in the string, excluding the terminating null character.