Showing 3 of 18 questions
Given a sorted array, find the first and last position of a given target value. If the target is not found, return [-1, -1].
#1. Find First and Last Position of Element in Sorted Array
Given an absolute file path (Unix style), simplify it by resolving redundant separators, directory names, and navigating back up the directory structure. Return the simplified canonical path.
#2. Simplify Path
You're given a board representing a game of Battleships. Count how many battleships are present on the board, where battleships can only be placed horizontally or vertically.
#3. Battleships in a Board
Page 1 of 1 · 18 total