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
stack and queue
BadCastAllExcept
Problema2
TmpFib
simple serialization
march long ques 4
introduction c-types
c++
Inherit
Stock buy/sell, maximum subarray problem