companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Find First and Last Position of Element in Sorted Array

48.9% acceptance · asked by 29 companies

Solve on LeetCode
ArrayBinary Search

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Instacart100Splunk100Airtel88Tinkoff88Apple75Meta75Tekion75Applied Intuition75Linkedin75Amazon63Tcs63Attentive63Bloomberg63Capgemini63Citadel63Oracle63Turing50Microsoft50Pinterest50Tiktok50Google50Zoho38Atlassian38DE Shaw38

Related problems

Two Sum
Easy
Merge Intervals
Medium
Best Time to Buy and Sell Stock
Easy
Group Anagrams
Medium
Number of Islands
Medium