---
title: "#find-first-and-last-position-of-element-in-sorted-array articles | Hashnode"
description: "Explore 2 articles tagged #find-first-and-last-position-of-element-in-sorted-array on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/find-first-and-last-position-of-element-in-sorted-array"
---

Tag

# #find-first-and-last-position-of-element-in-sorted-array

2 posts · 0 followers

[Subhradeep Saha](https://hashnode.com/@subhradeepsaha) · [May 11, 2024](https://hashnode.com/posts/solving-a-leetcode-problem-daily-day-10-find-first-and-last-position-in-sorted-array/663ee11060e68f86e103d810)

### [Solving a Leetcode problem daily — Day 10 | Find first and last position in sorted array](https://subhradeepsaha.hashnode.dev/solving-a-leetcode-problem-daily-day-10-find-first-and-last-position-in-sorted-array?utm_source=hashnode&utm_medium=feed)

Ace Leetcode’s 34 — Find First and Last position of element in sorted array challenge using binary search.

7 min read · [subhradeepsaha.hashnode.dev](https://subhradeepsaha.hashnode.dev/solving-a-leetcode-problem-daily-day-10-find-first-and-last-position-in-sorted-array?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [Mar 12, 2024](https://hashnode.com/posts/34/65f02006321350f1ca8ea71e)

### [34\. Find First and Last Position of Element in Sorted Array](https://chetan77.hashnode.dev/34?utm_source=hashnode&utm_medium=feed)

Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, return \[-1, -1\]. You must write an algorithm with O(log n) runtime complexity. (link) ...

3 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/34?utm_source=hashnode&utm_medium=feed)
