Solving Find First and Last Position of Element in Sorted Array in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Example 1:

Input: nums = [5,7,7,8,8,10], target = 8
Output: [3,4]

Example 2:

Input: nums = [5,7,7,8,8,10], target = 6
Output: [-1,-1]

See the full details of the problem Find First and Last Position of Element in Sorted Array at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go