Given an integer array arr of size n, find all magic triplets in it. A magic triplet is a group of three numbers whose sum is zero.

Looking for more Amazing Interview Questions to prepare for?

Given a variety of coin types defining a currency system, find the minimum number of coins required to express a given amount of money.

Looking for more Amazing Interview Questions to prepare for?

Given the daily prices of a stock, find the maximum possible profit one can generate by first buying one share of that stock on a certain day and then selling that share at least one day later.

Looking for more Amazing Interview Questions to prepare for?

Given an integer, check whether it is a palindrome.

Looking for more Amazing Interview Questions to prepare for?

Given two arrays a1[0..n-1] and a2[0..m-1], write a code to check whether a2[] is a subset of a1[] or not.

Looking for more Amazing Interview Questions to prepare for?

Given a set of N nuts and N bolts of different sizes, write a code to match the nuts and bolts.

Looking for more Amazing Interview Questions to prepare for?

Given an array A[] of N positive integers, write a code to count the frequency of all elements from 1 to N.

Looking for more Amazing Interview Questions to prepare for?

Given two arrays A and B of equal size N, find if the given arrays are equal or not.

Looking for more Amazing Interview Questions to prepare for?

Design a stack to push, pop, top, and retrieve the minimum element in constant time.

Looking for more Amazing Interview Questions to prepare for?

Looking for more Amazing Interview Questions to prepare for?

Given n non-negative integers representing an elevation map, find out how much water rainwater it can trap.

Ready to take the Next Step in your Career?

Improve your Interviewing Skills with Scaler!