56 questions · from 12 interviews · 2 asked more than once

Dp World interview questions

Every question candidates reported from their Dp World interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.

Dp World coding and DSA questions

  1. 01

    Group Anagrams

    Given an array of strings strs, group the anagrams together. You can return the answer in any order.

    Medium · Asked 2 times · From D P World | Group SDE 2 | DSA

  2. 02

    Capacity to Ship Packages Within D Days

    Given an array of package weights weights and an integer days, return the least weight capacity of the ship that will result in all the packages being shipped within days days.

    Medium · Asked 2 times · From D P World | Group SDE 2 | DSA

  3. 03

    Edit Distance

    Given two strings word1 and word2, find the minimum number of operations (insert, delete, replace) required to convert word1 into word2.

    Medium · From DP World | Group SDE 1 | Software Engineer | India | Oct 2026 | Reject

  4. 04

    Min Stack

    Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

    Easy · From DP World | Group SDE 1 | Software Engineer | India | Oct 2026 | Reject

  5. 05

    Merge Sorted Array

    Given two sorted arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. The first array has enough space to hold additional elements.

    Easy · From DP World | Group SDE 1 | Software Engineer | India | Oct 2026 | Reject

  6. 06

    Convert Binary Tree to Linked List

    You are given a binary tree with nodes having left, right, and next pointers. Convert the tree into a linked list such that the 'next' pointer points to the next node in level order traversal. Discuss approaches and implement the optimized solution.

    From DP World || Interview || SDE 1(Group SDE 1) || Round 2 and 3

  7. 07

    Binary Search with Greedy Approach

    A problem solvable using binary search combined with a greedy strategy. Exact details not remembered but involves applying greedy logic within a binary search framework.

    From DP World || Interview || SDE 1(Group SDE 1) || Round 2 and 3

  8. 08

    Cheapest Flights Within K Stops

    Find the cheapest price from src to dst with at most k stops. If there is no such route, return -1.

    Medium · From DP World || Interview || SDE 1(Group SDE 1) || Round 2 and 3

  9. 09

    Merge Two Sorted Lists

    Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists.

    Easy · From DP World || Interview || SDE 1(Group SDE 1) || Round 2 and 3

  10. 10

    Find Peak Element

    A peak element is an element that is strictly greater than its neighbors. Given a 0-indexed integer array nums, find a peak element, and return its index. If there are multiple peaks, return the index to any of the peaks.

    Medium · From DP World || Interview || SDE 1(Group SDE 1) || Round 2 and 3

  11. 11

    Distinct Rectangles on Cartesian Plane

    Given a list of points on the Cartesian plane, find the number of distinct rectangles that can be formed. Condition: The sides of the rectangle must be parallel to the X-axis or Y-axis.

    From DP World SDE1 Interview Experience (2 YOE)

  12. 12

    Maximum Path Sum in Binary Tree with One Skip Allowed

    A binary tree is given where each node has an integer value (positive or negative). We need to find the maximum path sum, but with the twist that we are allowed to skip at most one node on the path.

    From DP World SDE1 Interview Experience (2 YOE)

  13. 13

    Max Area of Rectangle of 1s in Shifted Binary Array

    Given a binary array, consisting 0s and 1s only of size n, using which we create a grid of size nxn where ith row is the ith left shift of the array. Find the max area of rectangle consisting of 1s only. N - 10^5

    Hard · From [Reject] - Dp world - SDE 1 - 1.5 years experience

  14. 14

    Longest Common Subsequence

    Find the length of the longest common subsequence of two given strings.

    From DP World | Interview Experience | Group SDE-2 | Reject

  15. 15

    Longest Valid Parentheses

    Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.

    From DP World | Interview Experience | Group SDE-2 | Reject

  16. 16

    JavaScript `this` and Prototypal Inheritance Output

    function Dog(name) { this.name = name; } Dog.prototype.bark = function() { console.log('Hello, ' + this.name); }; const dog = new Dog('Tommy'); dog.bark(); const dogBark = dog.bark; dogBark();

    From DP World || Group SDE 2 - FE || Interview Experience

  17. 17

    JavaScript Variable Hoisting and Scope Output

    let name = "John"; (function() { console.log(x); // ? let name = "Jerry"; console.log(x); // ? })();

    From DP World || Group SDE 2 - FE || Interview Experience

  18. 18

    JavaScript `Object.freeze` Immutability Output

    const deepObj = Object.freeze({ a: { b: 2 }, c: 3 }); deepObj.a.b = 42; deepObj.c = 5; console.log(deepObj.a.b); console.log(deepObj.c); deepObj.a = { b: 50 }; console.log(deepObj.a.b);

    From DP World || Group SDE 2 - FE || Interview Experience

  19. 19

    JavaScript Event Loop and Asynchronous Execution Output

    console.log(1) setTimeout(() ={ console.log(3) }, 0) Promise.resolve(() = { console.log(2) }) console.log(4)

    From DP World || Group SDE 2 - FE || Interview Experience

  20. 20

    Explain Event Loop

    Explain the JavaScript Event Loop mechanism.

    From DP World || Group SDE 2 - FE || Interview Experience

  21. 21

    Explain Closures

    Explain the concept of Closures in JavaScript.

    From DP World || Group SDE 2 - FE || Interview Experience

  22. 22

    Merge k Sorted Lists

    You are given an array of k linked-lists, each sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it.

    Hard · From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  23. 23

    Daily Temperatures

    Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer temperature. If there is no future day for which this is possible,…

    Medium · From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  24. 24

    Best Time to Buy and Sell Stock

    You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock. Return the maximum profit you…

    Easy · From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  25. 25

    Largest Rectangle in Histogram

    Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, return the area of the largest rectangle in the histogram.

    Hard · From DP World | Interview Experience | SDE-1 | March 2025 | Reject

16 more in the Dp World write-ups.

Dp World system design questions

  1. 01

    Ride-Sharing Application Low-Level Design

    You are tasked with designing and implementing a ride-sharing application where passengers can request rides, and drivers can be matched to them based on proximity. The application should handle different types of vehicles (such as cars, bikes, luxury cars)…

    From DP World | Interview Experience | Group SDE-2 | Reject

  2. 02

    Parking Lot System Design

    LLD Question: Parking Lot System. I started writing entities, but he quickly stopped me due to lack of time and asked how I would assign a parking spot.

    From DP World | SDE-2 | Gurgaon | March 2025

Dp World behavioural and HR questions

  1. 01

    Why Switch?

    Why are you looking to switch companies?

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  2. 02

    Why left first company?

    Why did you leave your first company in 6-7 months?

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  3. 03

    Teammate not doing work

    You and your teammate are working on a project with strong deadlines. What would you do if your teammate is not doing anything, he straight up refuses to do any work? What will you do?

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

Dp World other questions

  1. 01

    Implement Weather App

    Implement a weather application using React for the Online Assessment round.

    From DP World || Group SDE 2 - FE || Interview Experience

  2. 02

    What is Shadow DOM?

    Discuss the concept and use of Shadow DOM.

    From DP World || Group SDE 2 - FE || Interview Experience

  3. 03

    LocalStorage vs. Cookies vs. SessionStorage

    Compare and contrast LocalStorage, Cookies, and SessionStorage.

    From DP World || Group SDE 2 - FE || Interview Experience

  4. 04

    Implement TODO List in React

    Implement a TODO list application using React JS with add, edit, and delete functionalities.

    From DP World || Group SDE 2 - FE || Interview Experience

  5. 05

    What is @Autowired?

    What is @Autowired in Spring Boot?

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  6. 06

    What is @Component?

    What is @Component in Spring Boot?

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  7. 07

    Not using @Component

    What if we don't use @Component?

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  8. 08

    Comparing Objects in Java

    Questions about comparing objects in Java.

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  9. 09

    Starting Spring Boot project from scratch

    How to start a project from scratch and write a Spring Boot API.

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

  10. 10

    Multithreading program (Print 1-100 with 2 threads)

    Write a program to print numbers 1-100 using 2 threads.

    From DP World | Interview Experience | SDE-1 | March 2025 | Reject

Dp World interview questions FAQ

What questions are asked in Dp World interviews?

Candidates reported 56 distinct questions across 12 Dp World interviews. 41 coding and DSA questions, 2 system design questions, 3 behavioural and HR questions, 10 other questions.

Which Dp World interview questions are asked most often?

The most repeated are "Group Anagrams" (2 times), "Capacity to Ship Packages Within D Days" (2 times).

How difficult are Dp World interview questions?

Of the questions candidates rated, 27% were easy, 47% medium and 27% hard.