Showing 3 of 10 questions
You are given a grid where some cells are buildings and others are obstacles or empty land. Find the shortest distance a person can travel from an empty land cell to reach all the buildings.
#1. Shortest Distance from All Buildings
You are given file paths and their content. Find and return groups of duplicate files based on their content.
#2. Find Duplicate File in System
Given a sorted array, find the first and last position of a given target value. If the target is not found, return [-1, -1].
#3. Find First and Last Position of Element in Sorted Array