class Solution {
public:
bool IsContinuous( vector<int> numbers ) {
if (numbers.empty()) return false;
set<int> st;
int max_ = 0, min_ = 14;
for (int val : numbers) {
if (val > 0) {
if (st.count(val) > 0) return false;
st.insert(val);
max_ = max(max_, val);
min_ = min(min_, val);
}
}
return max_ - min_ < 5;
}
};</int></int>