# Category Archives: Arrays

Given two sorted arrays A and B, generate all possible arrays such that the first element is taken from A then from B then from… Read More
Given two unsorted arrays of the same size, write a function that returns true if two arrays are permutations of each other, otherwise false. Examples: … Read More
Given a number n, find count of all numbers from 1 to n that have 4 as a digit. Examples :  Input: n = 5… Read More
How to design a system that takes big URLs like “https://www.geeksforgeeks.org/count-sum-of-digits-in-numbers-from-1-to-n/” and converts them into a short 6 character URL. It is given that URLs… Read More
Given a number n, find the sum of digits in all numbers from 1 to n.  Examples:  Input: n = 5 Output: Sum of digits… Read More
LU decomposition of a matrix is the factorization of a given square matrix into two triangular matrices, one upper triangular matrix and one lower triangular… Read More
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 Kth largest element at any point of time. Note: Here we have a stream instead of a… Read More
Given an array of integers, find the nearest smaller number for every element such that the smaller element is on the left side. Examples:  Input:… 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
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