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 // Utilities
count_type min(count_type a, count_type b) { count_type min(count_type a, count_type b) { return (a <= b) ? a : b; }
if(a <= b) count_type max(count_type a, count_type b) { return (a >= b) ? a : b; }
return a;
return b;
}
count_type max(count_type a, count_type b) {
if(a >= b)
return a;
return b;
}
// Global variables // Global variables
treap file; treap file;