Pergunta de entrevista da empresa Arista Networks

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

Respostas da entrevista

Sigiloso

27 de abr. de 2021

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

Sigiloso

9 de jun. de 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