Given an array arr[] of size N and an integer K, the task is to find the smallest index in the array such that: floor(arr[i]… Read More »

Q.1. What is Regression ? What is Classification ? Ans. Regression : Target variable continous. Classification : Target variable is discrete Q.2. What are the… Read More »

Given an array of size n, the task is to find the minimum number of steps required to make all the elements of the array… Read More »

Round 1: Online Test The test was conducted on Mettle platform. It consisted of 2 sections, Technical MCQs which were based on complexities, data structures,… Read More »

Given 2 numbers a and b of same length. The task is to calculate their sum in such a way that when adding two corresponding… Read More »

Given a string str and an integer K, the task is to check whether the given string is K-periodic. A string is k-periodic if the… Read More »

Given a string str consisting of lowercase English alphabets. The task is to find whether there is any character in the string whose frequency is… Read More »

Given an integer N, the task is to find the largest even and odd N-digit numbers. Examples: Input: N = 4 Output: Even = 9998… Read More »

Given a number N, the task is to find the smallest Even number with N digits. Examples: Input: N = 1 Output: 0 Input: N… Read More »

The Input Submit formEnctype Property in HTML DOM is used to set or return the value of the enctype attribute in a Submit Field. This… Read More »

Amazon called for an interview for Hyderabad campus. Round 1: It was telephonic round where I was asked to code on a shared document during the… Read More »

Hi all, Amazon conducted a pool drive in January 2019 in Gurugram. We were shared a link for the test hosted on HackerEarth. The pattern… Read More »

There was no test – directly interviews. Round 1: The interviewer was pretty cool, looked like a 20 yo guy. Q1. Convert a tree into… Read More »

Given two integers n1 and n2, the task is to concatenate these two integers into one integer. Example: Input: n1 = 12, n2 = 34… Read More »

Given an Array arr[] and two integers K and M. The problem is to find the K-th Minimum element after concatenating the array to itself… Read More »

Given a string of words separated by spaces. The task is to find the first maximum length even word from the string. Eg: “You are… Read More »

Given a linked list containing N nodes and a positive integer K where K should be less than or equal to N. The task is… Read More »

Given a binary tree and two nodes, the task is to check if the nodes are siblings of each other or not. Two nodes are… Read More »

Given a string str consisting of upper case alphabets, numeric digits and arithmetic operators, the task is to group them into continuous sub-strings of same… Read More »

Tuple is a collection of elements. Tuples are heterogeneous data structures, i.e., is they can store elements of different data types. A tuple is immutable,… Read More »