Snippet format update
To match the starter (for the migration)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
### sortedLastIndex
|
||||
---
|
||||
title: sortedLastIndex
|
||||
tags: array,math,intermediate
|
||||
---
|
||||
|
||||
Returns the highest index at which value should be inserted into array in order to maintain its sort order.
|
||||
|
||||
@@ -15,4 +18,4 @@ const sortedLastIndex = (arr, n) => {
|
||||
|
||||
```js
|
||||
sortedLastIndex([10, 20, 30, 30, 40], 30); // 4
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user