Arista Networks interview questions

152 questions from 16 candidate reports · 2013 to 2025

Online test → Technical

DSA

Showing 31 of 85 reported in this area

Implement an LRU (Least Recently Used) Cache.
asked 2×mediumPractice this →
Implement a Bit Array in C.
asked oncemediumPractice this →
Find an element in a bitonic array.
asked oncemediumPractice this →
Reverse a linked list in groups of size k.
asked oncemediumPractice this →
Discuss and solve a graph traversal problem.
asked oncemediumPractice this →
Perform topological sorting of a graph using DFS.
asked oncemediumPractice this →
Maintain the k most frequently dialed phone numbers.
asked oncemediumPractice this →
Print the vertical order traversal of a binary tree.
asked oncemediumPractice this →
Explain or solve a problem based on trie data structures.
asked oncemediumPractice this →
Rearrange a given linked list in-place in a specific order.
asked oncemediumPractice this →
Print the nth Fibonacci number (n ≤ 20000) in hexadecimal form.
asked oncemediumPractice this →
Divide a linked list into k parts and perform required operations.
asked oncemediumPractice this →
Find duplicates in a file containing 6-digit numbers in O(n) time.
asked oncemediumPractice this →
Design a stack that supports getMin() in O(1) time and O(1) extra space
asked oncemediumPractice this →
Find the maximum sum from the root to a leaf node in a given n-ary tree.
asked oncemediumPractice this →
Find duplicate digits in a 6-digit number in O(n) time and minimum space.
asked oncemediumPractice this →
Design a feature to show the most frequent calls list with at most k items.
asked oncemediumPractice this →
Given a sorted integer array, convert it into a balanced Binary Search Tree.
asked oncemediumPractice this →
Identify and implement a Fibonacci-based pattern by analyzing given test cases.
asked oncemediumPractice this →
Suggest a data structure to search in a sorted linked list in better than O(n) time.
asked oncemediumPractice this →
Modify the frequent calls design to handle ties while still maintaining only k items.
asked oncemediumPractice this →
Merge two arrays where the first array has enough empty space to accommodate the second array.
asked oncemediumPractice this →
Design a stack that supports push, pop, and getMin operations in O(1) time and O(1) extra space
asked oncemediumPractice this →
Which data structure would you use to implement string prediction/autocomplete as in mobile phones?
asked oncemediumPractice this →
Given a parent directory, how would you insert a new directory into your file system data structure?
asked oncemediumPractice this →
Find the mean and median of elements when numbers are dynamically added at runtime. Explain the approach.
asked oncemediumPractice this →
What are DFS and BFS? Which data structures are used to implement them, and print DFS and BFS of a given tree.
asked oncemediumPractice this →
Write a search function to find a given directory by name across all directories in the file system structure.
asked oncemediumPractice this →
How would you implement a frequently-called contacts list that returns the top K most frequently contacted people?
asked oncemediumPractice this →
Given a binary tree and two values a and b, find the shortest distance between the nodes containing values a and b.
asked oncemediumPractice this →
Modify the solution to find maximum root-to-leaf sum in an n-ary tree using an iterative approach instead of recursion.
asked oncemediumPractice this →

CS fundamentals

Showing 20 of 75 reported in this area

Explain pointers and dynamic memory allocation in C.
asked 2×easyPractice this →
What is object slicing in C++?
asked oncemediumPractice this →
Explain the structure hack in C.
asked oncemediumPractice this →
Explain structure padding and alignment in C.
asked oncemediumPractice this →
Predict the output of a C program based on fork().
asked oncemediumPractice this →
Explain threads and their usage in operating systems.
asked oncemediumPractice this →
How would you optimize the space complexity of a trie?
asked oncemediumPractice this →
How are ordered_maps implemented internally in C++ STL?
asked oncemediumPractice this →
Compute the size of a structure in C (struct hack involved).
asked oncemediumPractice this →
What is the critical section problem and what are its solutions?
asked oncemediumPractice this →
Explain the struct hack in C and how structure size is calculated.
asked oncemediumPractice this →
Explain networking sockets and how they are used for communication.
asked oncemediumPractice this →
How would you implement a dynamic array (similar to C++ STL vector) in C?
asked oncemediumPractice this →
Allocate an m x n 2D array in C such that it can be accessed as arr[i][j].
asked oncemediumPractice this →
Explain deadlocks and process synchronization mechanisms in operating systems.
asked oncemediumPractice this →
Write C code using pointers and dynamic memory allocation with malloc and calloc.
asked oncemediumPractice this →
Explain HashMap implementation details and different collision resolution techniques.
asked oncemediumPractice this →
Explain the memory layout of a C program and where different types of variables are stored.
asked oncemediumPractice this →
Identify and explain errors related to modifying read-only strings and constant pointers in C programs.
asked oncemediumPractice this →
Predict the output of the following C program: int main(int argc, char *argv[]) { printf("%c", **++argv); }
asked oncemediumPractice this →

System design

Showing 8 of 13 reported in this area

Design and implement a basic web crawler.
asked oncemediumPractice this →
Extend the phonebook design to support searching by phone number.
asked oncemediumPractice this →
Design a phonebook data structure to support searching by first name.
asked oncemediumPractice this →
Extend the phonebook design to support searching by last name as well.
asked oncemediumPractice this →
Implement a hash map class and explain hashing and collision resolution techniques
asked oncemediumPractice this →
Design a phone directory to store phone numbers and retrieve information based on the number.
asked oncemediumPractice this →
Design a phonebook system that stores names and phone numbers and supports efficient prefix-based search.
asked oncemediumPractice this →
Design a system like Zomato to answer queries such as which nearby restaurants are serving a particular dish.
asked oncemediumPractice this →

Behavioural

1 questions reported in this area

Discuss the impact of AI and automation in networking, covering different aspects such as efficiency, scalability, and future challenges.

Showing 60 of 152 questions. Ranked by how often the same question came back across reports.

Practise a Arista Networks-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does Arista Networks ask?

Candidate interview reports most often cover DSA (48%) and CS fundamentals (43%).

How many rounds does Arista Networks interview have?

Candidate interview reports show an average of 3.1 rounds per experience, with a typical sequence of Online test → Technical. Individual interview paths can vary.

Is the Arista Networks interview hard?

Among questions with a reported difficulty, the mix is easy 36%, medium 57%, hard 7%.

Keep reading