亲测有效-兼容性强
- 但是需要代码中间没有空格,其他的语法折叠方法兼容性若容易崩。
Code
int found(int a[], int left, int right, int x) {
while (left < right) {
int mid = (right + left) >> 1;
if (a[mid] < x) left = mid + 1;
else
right = mid;
}
return left;
}
<details>
<summary>Code</summary>
<pre><code class="language-cpp">code...
code ...
</code></pre>
</details>
标签:code,right,int,折叠,mid,HTML,Markdown,left
From: https://www.cnblogs.com/starcos/p/17983892