Skip to content

Commit 13dcaad

Browse files
author
lucifer
committed
feat: 增加图片
1 parent de3433d commit 13dcaad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

problems/1649.create-sorted-array-through-instructions.md

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ nums[l:l] = [instruction]
135135
- query(l, r): 查询 [l, r] 范围内的数的个数
136136
- update(x): 将 x 更新到线段树
137137

138+
![](https://tva1.sinaimg.cn/large/008eGmZEly1gmomwhg131j30i90bvq3z.jpg)
139+
138140
因此我们的目标其实就是 min(query(1, instruction - 1), query(instruction + 1, upper)),其中 upper 为 instructions 的最大树。
139141

140142
核心代码:

0 commit comments

Comments
 (0)