Skip to content

Category Archives: Arrays

Given an unsorted array of n integers that can contain integers from 1 to n. Some elements can be repeated multiple times and some other… Read More
Given an infinite stream of integers, find the k’th largest element at any point of time.Example:  Input: stream[] = {10, 20, 11, 70, 50, 40,… Read More
Given an array of integers, find the nearest smaller number for every element such that the smaller element is on left side. Examples:  Input: arr[]… Read More
Snapdeal interview experience for Software Engineer position: Round 1: Simulation round Ques: Develop REST API for adding, fetching, updating and deleting a bookmark. Developed API… Read More
I got a chance to participate in walk-in drive at Paytm Headquarters. Went through the following process. Written test: It contained 20 objective questions having… Read More
Recently, I was interviewed for Amazon SDE-1 Position. There were two telephonic rounds followed by 4 F2F rounds. Telephonic Round 1 : ————————— He seemed… Read More
1. Machine Coding: Two players, two field; and have multiple ships located in their fields. They are guessing each others ship position and hitting. Tell… Read More
I was recently interviewed for SDE 2 position at OlaCabs. Round 1 (around 1 hour) Design and implement a logging library. Preferred language was Java.… Read More
  An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and… Read More
Round 1 1) There are M chocolate packets each packet can have variable number of chocolates in each packet. There are N students (N <… Read More
Given an array of integers, update every element with multiplication of previous and next elements with following exceptions. a) First element is replaced by multiplication of… Read More
Given two unsorted arrays that represent two sets (elements in every array are distinct), find the union and intersection of two arrays.For example, if the… Read More
Hi, Recently i was interviewed for Amazon SDE-1 Position in Hyderabad.There a telephonic round followed by 4 F2F rounds. Telephonic Round: 1. Given a array… Read More
Given an array of integers, write a function that returns true if there is a triplet (a, b, c) that satisfies a2 + b2 =… Read More
Given an array of integers print the missing elements that lie in range 0-99. If there are more than one missing, collate them, otherwise just… Read More