mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-10 04:06:51 +08:00
Update 0034.在排序数组中查找元素的第一个和最后一个位置.md
添加力扣原题链接
This commit is contained in:
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
# 34. 在排序数组中查找元素的第一个和最后一个位置
|
# 34. 在排序数组中查找元素的第一个和最后一个位置
|
||||||
|
|
||||||
|
[力扣链接](https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/)
|
||||||
|
|
||||||
给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。
|
给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。
|
||||||
|
|
||||||
如果数组中不存在目标值 target,返回 [-1, -1]。
|
如果数组中不存在目标值 target,返回 [-1, -1]。
|
||||||
|
Reference in New Issue
Block a user