Urban Company
20+ DP World Interview Questions and Answers
You are given a non-decreasing array and an integer K. You need to remove exactly K integers from the given array such that the maximum diff...read more
Stark Industry is planning to organize Stark Expo, for which various departments have to organize meetings to check their preparations. Since Stark Tower has limited rooms available for the meeting, ...read more
You are given an integer 'X' and your task is to find an integer 'Y' such that the bitwise XOR of the integers 'X' and 'Y' give the maximum possible value. T...read more
You are given a sorted array 'ARR' and a number 'X'. Your task is to count the number of occurrences of 'X' in 'ARR'.
Note :
1. If 'X' is not found in the array, return 0. 2. The give...read more
You are given two strings A and B. Find the index of the first occurrence of A in B. If A is not present in B, then return -1.
For Example:
A = “bc”, B = “abcddbc”. String “A” is present at i...read more
You are given an array ‘arr’ of ‘N’ distinct integers. Your task is to print all the non-empty subsets of the array.
Note: elements inside each subset should be sorted in increasing order. But ...read more
Given a linked list having two pointers in each node. The first one points to the next node of the list, however, the other pointer is random and can point to any node of th...read more
You have been given string 'S' of length 'N' that may contain duplicate alphabets. Your task is to return the count of distinct subsequences of it.
For example:
For the given string “deed” ...read more
Aahad and Harshit always have fun by solving problems. Harshit took a sorted array and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4,...read more
You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:
You have an e-commerce website. You have to find the closest warehouse to the customer's address. How would you index your database based on latitude and longitude to find the closest warehouse?
You are given a connected undirected unweighted graph of ‘N’ nodes and ‘M’ edges, such that there is only one undirected edge between any two nodes and no self-loop. Your task is to find ...read more
You are given a 2D matrix (containing either ‘0’ or ‘1’) of size N x M, where each row is in sorted order. Find the 0-based index of the first row that has the maximum number of...read more
100 people are standing in a row numbered from 1 - 100. First-person is given a gun. First-person shoots the second person and passes the gun to the third person. The cycle continues and 99th p...read more
The person who survives is the one standing at position 73.
The pattern of shooting and passing the gun creates a cycle of skipping one person each time.
The cycle continues until there is only one person left.
To find the survivor, we need to determine the position that remains after each cycle.
The position that remains after the first cycle is 2.
The position that remains after the second cycle is 4.
The position that remains after the third cycle is 8.
The pattern of positions r...read more
Given 3 Strings, check whether the 3rd string contains all the characters of string 1 and 2 in any order. If all the characters are present, print "YES" otherwise print "NO".
There should not be ...read more
Two Questions: -
1. How would you optimize a database?
2. Difference between Relational vs NoSQL.
You have a large database(100s of TB).Now you have to apply some formatting to it and copy it to another database.
How would you do it?
Design a card game. OOD was required in this question.
Few questions on OOPs mainly focussing on private inheritance, destructors, virtual functions, and dynamic polymorphism
Create a system for the management of parking. Vehicle type includes Bus, Car, Bikes and Cycles.
Q21. Stock buy and sell with at most 2 transaction
Implement a solution to find the maximum profit from buying and selling stocks with at most 2 transactions.
Use dynamic programming to keep track of maximum profit at each day with 0, 1, or 2 transactions.
Consider the possibility of splitting the transactions into two separate parts.
Calculate the maximum profit by iterating through the prices array and updating the maximum profit accordingly.
Q22. what is thread ?
A thread is a lightweight process that can run concurrently with other threads within the same process.
Threads allow for parallel execution of tasks within a single process.
Threads share the same memory space and resources of the process they belong to.
Threads can communicate with each other through shared memory or message passing.
Examples: Java threads, POSIX threads (pthreads) in C/C++.
Q23. Binary search to find target
Binary search is a divide and conquer algorithm that efficiently finds a target value in a sorted array.
Divide the array in half and compare the target value with the middle element
If the target is less than the middle element, search the left half. If greater, search the right half
Repeat the process until the target is found or the subarray is empty
Q24. Design paytm wallet
Design a digital wallet system similar to Paytm.
Allow users to add money to their wallet using various payment methods like credit/debit cards, net banking, UPI, etc.
Enable users to make payments for various services like mobile recharge, bill payments, online shopping, etc.
Implement security measures like two-factor authentication, encryption of sensitive data, and regular security audits.
Provide features like transaction history, cashback offers, loyalty points, and seamles...read more
Top HR Questions asked in DP World
Interview Process at DP World
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month