mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-22 06:52:49 +08:00
Update
This commit is contained in:
@ -135,7 +135,6 @@ Markdown支持部分html,例如这样
|
||||
|
||||
|
||||
|
||||
|
||||
-----------------------
|
||||
* 作者微信:[程序员Carl](https://mp.weixin.qq.com/s/b66DFkOp8OOxdZC_xLZxfw)
|
||||
* B站视频:[代码随想录](https://space.bilibili.com/525438321)
|
||||
|
@ -210,7 +210,7 @@ int main() {
|
||||
|
||||
## 其他语言版本
|
||||
|
||||
Java:
|
||||
### Java
|
||||
|
||||
```java
|
||||
public static void main(String[] args) {
|
||||
@ -240,7 +240,7 @@ Java:
|
||||
|
||||
|
||||
|
||||
Python:
|
||||
### Python
|
||||
```python
|
||||
def test_1_wei_bag_problem():
|
||||
weight = [1, 3, 4]
|
||||
@ -260,7 +260,7 @@ def test_1_wei_bag_problem():
|
||||
test_1_wei_bag_problem()
|
||||
```
|
||||
|
||||
Go:
|
||||
### Go
|
||||
```go
|
||||
func test_1_wei_bag_problem(weight, value []int, bagWeight int) int {
|
||||
// 定义 and 初始化
|
||||
@ -292,7 +292,7 @@ func main() {
|
||||
}
|
||||
```
|
||||
|
||||
javaScript:
|
||||
### javaScript
|
||||
|
||||
```js
|
||||
|
||||
|
Reference in New Issue
Block a user