Arista Networks interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Arista Networks
upvote
share-icon
4 rounds | 11 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 Months
Topics: Array, String, DP, Stack and Queue, Graph, Tree
Tip
Tip

Tip 1 : Practice quality questions.
Tip 2 : Learn some basics of system design as it will be asked in big tech companies
Tip 3 : Don't fear interviewers. Always keep this mindset that they are there to recruit you not reject you.
Tip 4 : Must have at least 1 project and you should know how it works.

Application process
Where: Campus
Eligibility: 8 cgpa and above.
Resume Tip
Resume tip

Tip 1 : Having at least 1 project will let you stand out
Tip 2 : resume should be one page only.
Tip 3 : Put some achievements like you got a good rank in a coding contest

Interview rounds

01
Round
Medium
Online Coding Interview
Duration80 minutes
Interview date8 Aug 2022
Coding problem2

It was conducted on deSelect platform
It was conducted at 8 pm.
Duration was of 30 min for mcqs + 25 min for each coding questions (2 coding quesion)

1. Delete middle node

Easy
15m average time
95% success
0/40
Asked in companies
GrowwAdobeMicrosoft

Given a singly linked list of 'N' nodes. Your task is to delete the middle node of this list and return the head of the modified list.


However, if the list has an even number of nodes, we delete the second middle node


Example:
If given linked list is 1->2->3->4 then it should be modified to 1->2->4.
Problem approach

First find the size of the linked list.
Then tarverse till n/2 - 1 node 
then remove the n/2th node.

Try solving now

2. Ninja And The LCM

Easy
15m average time
86% success
0/40
Asked in companies
D.E.ShawCarWaleArista Networks

Ninja has given two numbers ‘X’ and ‘Y’. He has to find the LCM of these two numbers.

LCM (Least Common Multiple) of two numbers is the smallest number that can be divisible by both numbers.

As you are his big brother. So help Ninja in calculating the LCM.

EXAMPLE:
Input: 'X' = 2,  ‘Y’=3

Output: "6"

As “6” is the smallest number that is divisible by both 2 and 3.
Problem approach

The task is solved by making lengths of both the strings equal and then checking whether both strings become the same or not. Follow the below steps to solve the problem:

Iterate until the lengths of both strings are unequal.
If the length of str1 is less than str2, append str1 to itself in else do the same for str2.
After the loop, if both are equal, print any string, else print -1.

Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date9 Aug 2022
Coding problem2

It was done on Google Meet.
My first round was at 9 am.
The interviewer has an experience of 2 years.
He was calm and make me feel comfortable.
He introduced me and asked the same from me.
Then we have 10 minutes discussion about my internship 
what I did there and what was my contribution 
What I have learned there.

1. Reverse Nodes in k-Group

Hard
56m average time
30% success
0/120
Asked in companies
ArcesiumOracleGojek

You are given a Singly Linked List of integers and an integer array 'B' of size 'N'. Each element in the array 'B' represents a block size. Modify the linked list by reversing the nodes in each block whose sizes are given by the array 'B'.

Note:
1. If you encounter a situation when 'B[i]' is greater than the number of remaining nodes in the list, then simply reverse the remaining nodes as a block and ignore all the block sizes from 'B[i]'. 

2. All block sizes are contiguous i.e. suppose that block 'B[i]' ends at a node cur, then the block 'B[i+1]' starts from the node just after the node cur.
Example
Linked list: 1->2->3->4->5
Array B: 3 3 5

Output: 3->2->1->5->4

We reverse the first block of size 3 and then move to block 2. Now, since the number of nodes remaining in the list (2) is less than the block size (3), we reverse the remaining nodes (4 and 5) as a block and ignore all the block sizes that follow.
Try solving now

2. OS Questions

What are semaphores
Binary semaphores
Mutex Vs Lock
Virtual memory
Thrashing
RAID concept
About scheduling algorithm

Problem approach

Tip 1 : Read OS interview questions
Tip 2 : Read in deep

03
Round
Hard
Video Call
Duration60 Minutes
Interview date9 Aug 2022
Coding problem2

It was done on Google Meet.
My second round was at 12 pm.
I got a mail that my second round is scheduled at 12 pm 
It was on google meet. He first introduced himself and then asked me for the same.
Then immediately jumped on coding question

1. Fishmonger

Hard
30m average time
60% success
0/120
Asked in companies
SamsungAmazonProtiviti

A fishmonger wants to bring his goods from port to the market. On his route, he has to traverse an area with many states. He has to pay a toll at each border.

He is a good businessman. He wants to choose the route in such a way that he has to pay as little money for tolls as possible. On the other hand, he has to be at the market within a particular time. Otherwise, his fish will start to smell.

You are given ‘N’ number of states and the time ‘M’ in which he has to reach the market. You need to return the minimum toll amount that he has to pay to reach the market in the given time. The 0’th index is the port, and the 'N'-1 index is the market.

For example:
Consider If N = 2 , M = 4, Time = [[0,  2], [3,  0]] and Toll = [[0, 10], [ 5,  0]]]
The optimal path to reach node 1 from node 0 is 0 -> 1. The time required in the path is 2, and the minimum toll needed within the given time constraints is 10. Hence the answer is 10.
Try solving now

2. DBMS Questions

Find Nth salary of an employee.
All types of normal form
What is BCNF
Transactions in dbms
Serialibility

04
Round
Medium
HR Round
Duration70 Minutes
Interview date9 Aug 2022
Coding problem5

It was on Google Meet.
My last round was at 3 pm.
I got a mail that my hr round is scheduled at 3 pm 
It was on google meet.
It was taken by an employee who has an experience of 20 years in this field.
He was calm and cool.
He first introduced himself and then asked me for the same.
Then ask some hr specific questions.
And then ask a design question.

1. Basic HR Question

Why do you want to join Arista?

Problem approach

Tip 1 : Always have some research about the company
Tip 2 : Highlight good points
Tip 3 : Align with your goals

2. Basic HR Question

Why should we hire?

Problem approach

Tip 1 : Show your skills 
Tip 2 : Your goals are aligned with the goal of company

3. Basic HR Question

What are your strength and weakness?

Problem approach

Tip 1 : Research about yourself
Tip 2 : Be honest and specific
Tip 3 : Try to explain with an example

4. Basic HR Question

You are a manager of your team and you see that a person is taking all the credit of work. Then how will you resolve it?

Problem approach

Tip 1 : Analyze the question carefully.
Tip 2 : Took a decision as a manager

5. URL Shortener

Easy
10m average time
90% success
0/40
Asked in companies
AdobeMakeMyTripShareChat

You have given a URL id – 'N' consisting of only digits. Your task is to generate a short URL for the given URL id.

To generate a short URL, you need to convert the given URL id to 62 base number where digits of the number are:[“0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”] i.e “0” corresponds to 0, “a” corresponds to 10, “Z” corresponds to 61, and “10” corresponds to 62, “11” corresponds to 63, and so on….

Follow Up:
Can you solve this in logarithmic time and space complexity?
Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 5 problems
Interviewed by Arista Networks
1997 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes