We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c085b5 commit 83a806aCopy full SHA for 83a806a
codes/c/chapter_greedy/max_capacity.c
@@ -12,7 +12,7 @@ int myMin(int a, int b) {
12
}
13
/* 求最大值 */
14
int myMax(int a, int b) {
15
- return a < b ? a : b;
+ return a > b ? a : b;
16
17
18
/* 最大容量:贪心 */
0 commit comments