0 day streak

Arista Networks coding interview questions

Product India Machine coding / LLD

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Find Minimum in Rotated Sorted ArrayRotated Array Medium Binary Search Microsoft, Nutanix, Expedia Group +11 Solve
Insert Delete GetRandom O(1)Hash Map + Array Medium Design Data Structures Google, Amazon, Apple +50 Solve
Design SkiplistRandomized Algorithms Hard Design Data Structures X (Twitter), eBay, Optiver +1 Solve
Time Based Key-Value StoreBasics Medium Binary Search Apple, Netflix, Uber +25 Solve
String to Integer (atoi)Simulation Medium Arrays & Hashing Amazon, Apple, Netflix +17 Solve
Reverse Nodes in k-GroupFront Middle Back Pointer Hard Linked List Amazon, Microsoft, Meta +33 Solve
Reverse Linked List IIFront Middle Back Pointer Medium Linked List Apple, Bloomberg, Nutanix +7 Solve
Restore IP AddressesChoice per Position Medium Recursion & Backtracking Microsoft, Nvidia, TikTok (ByteDance) +8 Solve
Reorder ListSlow Fast Pointers Medium Linked List Meta, Snap, Expedia Group +4 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Missing NumberMissing / Repeated Numbers Easy Bit Manipulation Microsoft, Nvidia, Palantir +29 Solve
Contains Duplicate IISliding Window · Fixed Easy Arrays & Hashing Google, Netflix, Airbnb +4 Solve
Merge In Between Linked ListsMiscellaneous Medium Linked List Oracle, JPMorgan Chase, Qualcomm +1 Solve
Remove Linked List ElementsDummy Node Pattern Easy Linked List Intel, Pure Storage, Freshworks Solve
Min StackStack Medium Design Data Structures Microsoft, Apple, Snowflake +33 Solve
Maximum Units on a TruckGreedy Easy Arrays & Hashing JPMorgan Chase, IBM, Plaid Solve
Kth Largest Element in a StreamTop K / Kth Largest / Smallest Easy Heaps Google, Zillow, Target +8 Solve
Palindromic SubstringsStrings Medium Dynamic Programming Agoda, Akamai, Anduril +15 Solve
Course Schedule IITopological Sort Medium Graphs Google, Amazon, Meta +42 Solve
Maximum Depth of Binary TreeRecursion Easy Trees & BST LinkedIn, Spotify, Tesla +19 Solve
Search in Rotated Sorted ArrayRotated Array Medium Binary Search Amazon, Microsoft, Apple +59 Solve
Path Sum IIBacktracking Medium Trees & BST Apple, Zillow, Palo Alto Networks +3 Solve
Word Search2D Matrix Backtracking Medium Recursion & Backtracking Google, Microsoft, Meta +36 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
PermutationsPermutations Medium Recursion & Backtracking Google, Apple, LinkedIn +23 Solve
Copy List with Random PointerMiscellaneous Medium Linked List Google, Amazon, Microsoft +23 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Amazon, Microsoft, Apple +79 Solve
Simplify PathStack Basics Medium Stack Meta, Snowflake, Grab +11 Solve
Word Break1D DP Medium Dynamic Programming Google, Amazon, Microsoft +35 Solve
Remove All Occurrences of a SubstringStack Basics Medium Stack X (Twitter), Klarna, Charles Schwab +3 Solve
Remove Duplicates from Sorted List IIDummy Node Pattern Medium Linked List Groww, MakeMyTrip Solve
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Microsoft +53 Solve
Edit DistanceStrings Medium Dynamic Programming Google, LinkedIn, Okta +18 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Swap Nodes in PairsDummy Node Pattern Medium Linked List Microsoft, Zynga, Qualcomm +3 Solve
Decode StringStack Basics Medium Stack Google, Amazon, Microsoft +31 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Moving Average from Data StreamQueue / Circular Buffer Easy Design Data Structures Meta, Spotify, Coinbase +9 Solve
Implement Queue using StacksStack Basics Easy Stack Microsoft, Meta, Apple +28 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +33 Solve
LFU CacheLinked Lists Hard Design Data Structures Amazon, Apple, Netflix +37 Solve
Compare Version NumbersString Basics Medium Arrays & Hashing MongoDB, Block (Square), Zoho Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Convert Binary Number in a Linked List to IntegerBasics Easy Bit Manipulation Nutanix, Juniper Networks, Workday +3 Solve
Count Binary SubstringsContribution Technique Easy Arrays & Hashing JPMorgan Chase, IBM, Wells Fargo +3 Solve
Design HashMapPre-processing + tradeoffs Easy Design Data Structures Apple, Nvidia, Snowflake +25 Solve
Merge Sorted ArrayTwo Pointer Easy Arrays & Hashing Meta, Apple, Nvidia +40 Solve
Count Good Nodes in Binary TreeChild + Ancestor Handling Medium Trees & BST Goldman Sachs, DocuSign, SAP Solve
Diameter of Binary TreePostorder + Multiple Return Values Easy Trees & BST Google, Meta, DoorDash +22 Solve
Also reported, being added to AlgoRung (9)

How Many Numbers Are Smaller Than the Current Number · Binary Tree Pruning · Merge Nodes in Between Zeros · Find the Town Judge · Construct String With Repeat Limit · Rotated Digits · Inorder Successor in BST II · Count Negative Numbers in a Sorted Matrix · Find in Mountain Array

Questions people ask

What coding questions does Arista Networks ask most?

Find Minimum in Rotated Sorted Array, Insert Delete GetRandom O(1), Design Skiplist, Time Based Key-Value Store, String to Integer (atoi), Reverse Nodes in k-Group, Reverse Linked List II, Restore IP Addresses.

Which topics come up in Arista Networks coding rounds?

linked list, strings, trees, design data structure, graphs, dynamic programming.

How hard are Arista Networks coding questions?

Of the reported questions, 15 are easy, 33 medium and 3 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.