Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
minmax
#include <iostream> #include <algorithm> int main() { int x = 17; x = std::min(std::max(x, 0), 10); std::cout << x << '\n'; x = -1; x = std::min(std::max(x, 0), 10); std::cout << x << '\n'; }
run
|
edit
|
history
|
help
0
DP on Trees: Type B (In/out Dp)
Guess Number
template
TypeSizeTest
TREAP RANGE QUERY (but it's runtime is not that good)
First and last Occurence of an Element
hacker
MapGrocery
Vectors as Inputs to Map
Substring search