mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-02 18:39:09 +08:00
更正了121、122、123、188md格式错误,好心干了坏事,把卡哥格式改了,吓死,赶紧改过来
This commit is contained in:
@@ -131,7 +131,7 @@ public:
|
||||
|
||||
## 其他语言版本
|
||||
|
||||
### Java
|
||||
Java:
|
||||
|
||||
```java
|
||||
// 贪心思路
|
||||
@@ -186,9 +186,8 @@ class Solution {
|
||||
}
|
||||
```
|
||||
|
||||
Python:
|
||||
|
||||
|
||||
### Python
|
||||
```python
|
||||
class Solution:
|
||||
def maxProfit(self, prices: List[int]) -> int:
|
||||
@@ -212,7 +211,8 @@ class Solution:
|
||||
return dp[-1][1]
|
||||
```
|
||||
|
||||
### Go
|
||||
Go:
|
||||
|
||||
```golang
|
||||
//贪心算法
|
||||
func maxProfit(prices []int) int {
|
||||
@@ -248,7 +248,8 @@ func maxProfit(prices []int) int {
|
||||
}
|
||||
```
|
||||
|
||||
### Javascript
|
||||
Javascript:
|
||||
|
||||
贪心
|
||||
```Javascript
|
||||
var maxProfit = function(prices) {
|
||||
@@ -284,7 +285,8 @@ const maxProfit = (prices) => {
|
||||
};
|
||||
```
|
||||
|
||||
### C
|
||||
C:
|
||||
|
||||
```c
|
||||
int maxProfit(int* prices, int pricesSize){
|
||||
int result = 0;
|
||||
|
||||
Reference in New Issue
Block a user