mirror of
https://github.com/krahets/hello-algo.git
synced 2025-10-30 09:57:30 +08:00
greedy/max_capacity: fix myMax algorithm error (#1784)
Co-authored-by: wujing <realwujing@qq.com>
This commit is contained in:
@ -12,7 +12,7 @@ int myMin(int a, int b) {
|
||||
}
|
||||
/* 求最大值 */
|
||||
int myMax(int a, int b) {
|
||||
return a < b ? a : b;
|
||||
return a > b ? a : b;
|
||||
}
|
||||
|
||||
/* 最大容量:贪心 */
|
||||
|
||||
Reference in New Issue
Block a user