Arista Networks Interview Question

Round 1: Few output questions related to static variables, format of printf function Coding Question: Q1: Given a very large number, which cannot be stored in usual data types. How will you store it and add one to it? Q2: Given an sorted array of numbers, find the missing number in less than O(n) 11,12,14,15,16,17 O/P 13

Interview Answers

Anonymous

Apr 27, 2021

Q1: Use array / vector to store digits of number Q2: Use binary search

Anonymous

Jun 9, 2021

We could find missing number by simply adding up all numbers and subtracting that sum from original sum of lower to biggest number of array