Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[pull] master from youngyangyang04:master #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
pull merged 11 commits into AlgorithmAndLeetCode:master from youngyangyang04:master
Jul 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit Hold shift + click to select a range
3a76b3a
更新 0704.二分查找 排版格式
jinbudaily Jul 17, 2023
948aca8
更新 0704.二分查找 排版格式修复
jinbudaily Jul 17, 2023
60e2391
Merge pull request #2183 from jinbudaily/master
youngyangyang04 Jul 17, 2023
fdbc744
更新 027.移除元素 排版格式修复
jinbudaily Jul 17, 2023
ec101be
更新 0977.有序数组的平方
jinbudaily Jul 17, 2023
76c84ef
更新 0209. 长度最小的子数组 排版格式修复
jinbudaily Jul 17, 2023
7a30d50
更新 059.螺旋矩阵II 排版格式修复
jinbudaily Jul 17, 2023
053632c
更新 数组总结篇 排版格式修复
jinbudaily Jul 17, 2023
a3cc34e
更新 数组理论基础 排版格式修复
jinbudaily Jul 17, 2023
23c558f
Merge branch 'master' of github.com:jinbudaily/leetcode-master
jinbudaily Jul 17, 2023
ae4300d
Merge pull request #2184 from jinbudaily/master
youngyangyang04 Jul 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
更新 0704.二分查找 排版格式
  • Loading branch information
jinbudaily committed Jul 17, 2023
commit 3a76b3a85e097446ab5f9e7dbb6028bac81c75de
36 changes: 20 additions & 16 deletions problems/0704.二分查找.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

## 算法公开课

***[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html):[手把手带你撕出正确的二分法](https://www.bilibili.com/video/BV1fA4y1o715),相信结合视频再看本篇题解,更有助于大家对本题的理解**。
**[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html):[手把手带你撕出正确的二分法](https://www.bilibili.com/video/BV1fA4y1o715),相信结合视频再看本篇题解,更有助于大家对本题的理解**。


## 思路
Expand Down Expand Up @@ -160,7 +160,7 @@ public:

## 其他语言版本

**Java:**
### **Java:**

(版本一)左闭右闭区间

Expand Down Expand Up @@ -206,7 +206,7 @@ class Solution {
}
```

**Python:**
### **Python:**

(版本一)左闭右闭区间

Expand Down Expand Up @@ -246,7 +246,7 @@ class Solution:
return -1 # 未找到目标值
```

**Go:**
### **Go:**

(版本一)左闭右闭区间

Expand Down Expand Up @@ -288,7 +288,7 @@ func search(nums []int, target int) int {
}
```

**JavaScript:**
### **JavaScript:**
(版本一)左闭右闭区间 [left, right]

```js
Expand Down Expand Up @@ -345,7 +345,7 @@ var search = function(nums, target) {
};
```

**TypeScript**
### **TypeScript**

(版本一)左闭右闭区间

Expand Down Expand Up @@ -387,7 +387,7 @@ function search(nums: number[], target: number): number {
};
```

**Ruby:**
### **Ruby:**

```ruby
# (版本一)左闭右闭区间
Expand Down Expand Up @@ -425,7 +425,7 @@ def search(nums, target)
end
```

**Swift:**
### **Swift:**

```swift
// (版本一)左闭右闭区间
Expand Down Expand Up @@ -479,7 +479,7 @@ func search(nums: [Int], target: Int) -> Int {

```

**Rust:**
### **Rust:**

```rust
# (版本一)左闭右闭区间
Expand Down Expand Up @@ -523,7 +523,8 @@ impl Solution {
}
```

**C:**
### **C:**

```c
// (版本一) 左闭右闭区间 [left, right]
int search(int* nums, int numsSize, int target){
Expand Down Expand Up @@ -575,7 +576,8 @@ int search(int* nums, int numsSize, int target){
}
```

**PHP:**
### **PHP:**

```php
// 左闭右闭区间
class Solution {
Expand Down Expand Up @@ -607,7 +609,8 @@ class Solution {
}
```

**C#:**
### **C#:**

```csharp
//左闭右闭
public class Solution {
Expand Down Expand Up @@ -652,7 +655,8 @@ public class Solution{
}
```

**Kotlin:**
### **Kotlin:**

```kotlin
class Solution {
fun search(nums: IntArray, target: Int): Int {
Expand Down Expand Up @@ -682,9 +686,8 @@ class Solution {
}
```

### **Kotlin:**


**Kotlin:**
```Kotlin
// (版本一)左闭右开区间
class Solution {
Expand Down Expand Up @@ -715,7 +718,7 @@ class Solution {
}
}
```
**Scala:**
### **Scala:**

(版本一)左闭右闭区间
```scala
Expand Down Expand Up @@ -763,3 +766,4 @@ object Solution {
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>

AltStyle によって変換されたページ (->オリジナル) /