Facebook | Phone | Remove Nth Node & Shortest Distance from All Buildings
Anonymous User
2988

Question 1:
Given a singly linked list. Remove node at ith index.
https://leetcode.com/problems/remove-nth-node-from-end-of-list/

Question 2:
Variation of https://leetcode.com/problems/shortest-distance-from-all-buildings/ (premium)
Given a NxN matrix of integers as follows:
1 - space (can dig)
2 - house (cannot dig)
3 - obstacle (cannot dig)
Dig a single well so that distance to each house from the well is minimal

Comments (6)