Files
starcodedoc-polyglot-e2e/cpp/filter.cpp

5 lines
130 B
C++

int smooth_sample(int current, int previous) {
if (current > previous) return (current + previous) / 2;
return current;
}