Search Questions

Company: DPWORLD

#1

You are given an integer 'n', indicating that there are n family members labeled from 1 to n. This large family completes dinner in several rounds due to limited seating at the dining table (k seats) and prerequisite relationships between members, which may be children eating first, senior members eating first, or any other reason. You are also given an array of relations where relations[i] = [mem

Asked in: DPWORLD


Buyer: 0
Code Size:
#2

There are two neighbours and they both have plates with their names written on them. Now, neighbour B wants to use neighbour A's plate because he lost his. So, B needs to make a nickname for himself. B has to remove the minimum number of consecutive characters from his name in such a way that it becomes a subsequence of A's plate. There is a possibility that he may have to remove all the character

Asked in: DPWORLD


Buyer: 0
Code Size:
#3

Given a series of integer intervals, determine the size of the smallest set that contains at least 2 integers within each interval.

Example:
first = [0, 1, 2]
last = [2, 3, 3]

The intervals start at first[i] and end at last[i].
- Interval 0: [0, 2] → contains 1 and 2
- Interval 1: [1, 3] → contains 2 and 3
- Interval 2: [2, 3] → contains 2 and 3

To satisfy all intervals

Asked in: DPWORLD


Buyer: 1
Code Size:
#4

A forklift operator navigates products within an automotive parts warehouse. The dashboard displays a real-time map showing open and blocked sections as an n x m matrix of 1's (open) and 0's (blocked). The operator starts at the top-left corner of the map at warehouse[0][0] and aims to reach the bottom-right corner at warehouse[n-1][m-1]. Movements can only be made to the right or downward. Given

Asked in: DPWORLD


Buyer: 0
Code Size: