min이 1이고 max가 3이라고 가정하고


if ( str >= min && str <= max )


if ( str == 1 || str == 2 || str == 3 )


둘중 어떤게 더 빠르고 효율적인가요?


장단점이 있어 보이는데