🎁 Exclusive Offer! Join our Telegram Channel to get **special discounts** and updates! 🚀

🚀 Struggling with coding interviews? We've got you covered! 💡 Practice real questions, sharpen your skills, and land your dream job! 🎯

Search Questions

Recent Questions

#1

Given a String and an Array
Your solution will be scored against multiple hidden test cases, with a sample case provided for reference.
The default code includes a mechanism for reading input strings. You will need to parse these strings into the appropriate variables as needed.
The output data type does not matter, as long as the characters in the output match the expected result.
Task:
Give

Asked in: No companies listed


People Bought: 0

Price (in Rs): 0.00

#2

Format a String
Your solution will be scored against multiple hidden test cases, with a sample case provided for your reference.
The default code includes a mechanism for reading input strings. You will need to parse these strings into the appropriate variables as needed.
The output data type is not a concern, as long as the characters within the output match the expected outcome.

Task:
Giv

Asked in: No companies listed


People Bought: 0

Price (in Rs): 0.00

#3

CPU scheduling algorithms are used to efficiently manage the execution of processes. A core can handle one process at a time, but CPUs often have multiple cores. Given n processes, where ith process starts at start i and finishes at end i, both inclusive, determining the minimum number of cores needed to handle all the processes.

Asked in: IDFC


People Bought: 0

Price (in Rs): 101.00

#4

In an e-commerce product search system, users input queries to search for items. You are given an array products of length n representing the product names and an array queries of length q containing search query strings.
Implement a function that, for each query string, returns all products that are anagrams of the query string. An anagram is any string that can be formed by rearranging the le

Asked in: IBM


People Bought: 2

Price (in Rs): 101.00

#5

getQueryAnswers
In a machine learning model, there are n data entries stored in the model's output cache cacheEntries. Each entry contains three values:
1. timestamp – when the prediction was made.
2. modelId – the identifier of the machine learning model.
3. predictionValue – the model's output, represented as a string containing an integer.

A query handler receives q queries in th

Asked in: IBM


People Bought: 0

Price (in Rs): 101.00

#6

A company needs an efficient strategy to optimize resource allocation for servers based on performance metrics. The performance of each server is represented by performance[i], where 0 ≤ i < n. A server's rank is defined by the count of distinct performance metrics that are greater than or equal to its own performance metric.
To allocate resources, two positive integer constants, inc and dec, are

Asked in: JPMORGAN


People Bought: 0

Price (in Rs): 151.00

#7

FunWithAnagrams
Two strings are anagrams if they are permutations of each other. In other words, both strings have the
same size and the same characters. For example, "aaagmnrs" is an anagram of "anagrams". Given a
array of strings, remove each string that is an anagram of an earlier string then return the remaining array in sorted order.

Example
str = ['code', 'doce', 'ecod', 'framer', 'f

Asked in: JPMORGAN


People Bought: 0

Price (in Rs): 201.00

#8

Take it apart

Given an array A of length N, Alex and Bob have decided to play a game called "Take it apart." At the beginning of the game, players pick a side of the array, either the start (S) or the end (E), and it's fixed for the rest of the game. Then, they start playing in turns. Alex goes first. They pick a number from their side and remove the number from the array. This number is cons

Asked in: Meesho


People Bought: 0

Price (in Rs): 151.00

#9

A number x is called beautiful if the bitwise XOR of all elements from 0 to x is equal to x.

Task
Given an array A of N integers, find the number of beautiful elements in it.

Function Description
Complete the function solve() provided in the editor. This function takes the following parameters and returns the required answer:

- N: Represents the number of elements in the array

Asked in: Meesho


People Bought: 1

Price (in Rs): 151.00

#10

The manager of an Amazon warehouse needs to ship n products from different locations. The location of the i-th product is represented by an array locations[i]. The manager is allowed to perform one operation at a time. Each operation is described below:

1. If the inventory has two or more products, the manager can pick two products x and y from the inventory if they have different locations,

Asked in: Amazon


People Bought: 1

Price (in Rs): 151.00