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 a string str which represents the ASCII Sentence, the task is to convert this string into its equivalent character sequence. Examples: Input: str =… 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 »

Given an array A and positive integer K. The task is to find maximum number elements for which the absolute difference of any of the… Read More »

In a Unix/Linux operating system, the C/C++ languages provide the POSIX thread(pthread) standard API(Application program Interface) for all thread related functions. It allows us to… 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 an array arr[] of integer elements, the task is to find the length of the longest sub-array whose product is 0. Examples: Input: arr[]… 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 arrays of N integers. Consider an array C, where the i-th integer will be d*a[i] + b[i] where d is any arbitrary real… Read More »

Given an array of N integers and an integer K. The task is to print the maximum number of pairs(a[i]+a[j]) possible which are divisible by… 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 »