Simplify min+max

This commit is contained in:
Matúš Púll 2025-04-20 11:58:38 +02:00
parent 38d2ca1d66
commit 6063b65fda

View file

@ -19,16 +19,8 @@ struct position {
};
// Utilities
count_type min(count_type a, count_type b) {
if(a <= b)
return a;
return b;
}
count_type max(count_type a, count_type b) {
if(a >= b)
return a;
return b;
}
count_type min(count_type a, count_type b) { return (a <= b) ? a : b; }
count_type max(count_type a, count_type b) { return (a >= b) ? a : b; }
// Global variables
treap file;