greedy/max_capacity: fix myMax algorithm error (#1784)

Co-authored-by: wujing <realwujing@qq.com>
This commit is contained in:
WuJing
2025-07-21 15:12:34 +08:00
committed by GitHub
parent 5c085b5592
commit 83a806a602

View File

@ -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;
}
/* 最大容量:贪心 */