Skip to content

Category Archives: Arrays

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
Array in C is one of the most used data structures in C programming. It is a simple and fast way of storing multiple values… 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 the multiplication of previous and next elements with the following exceptions. a) The First element is… Read More
Given two unsorted arrays that represent two sets (elements in every array are distinct), find the union and intersection of two arrays. Example:  arr1[] =… 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
Round 1 Q1. Multiply two 2d matrices  Q2 You are given a stack in which elements are filled at runtime. And standard push and pop operation.… Read More
Given an array and a number ‘x’, write a function to delete ‘x’ from the given array. We assume that array maintains two things with… Read More
Written MCQ There were 20 multiple choice questions to be done in 30 minutes time and most of the technical questions were from, one… Read More
First round was Online Test. There were totally 32 Questions divided into 3 categories with no negative marking. 1) Aptitude & Logical Questions (10 Questions)… Read More
Given an array of size n where all elements are distinct and in the range from 0 to n-1, change the contents of arr[] so… Read More
Written Test: 1) 15 Aptitude Questions 2) 25 CS Fundamentals & Couple of output questions. 3) Coding Question: A thief trying to escape from a… Read More