mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-02 18:39: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) {
|
int myMax(int a, int b) {
|
||||||
return a < b ? a : b;
|
return a > b ? a : b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 最大容量:贪心 */
|
/* 最大容量:贪心 */
|
||||||
|
|||||||
Reference in New Issue
Block a user