message: Update count-hills-and-valleys-in-an-array.cpp
diff: @@ -8,10 +8,10 @@ public:
  int result = 0, inc = -1;
  for (int i = 0; i + 1 < size(nums); ++i) {
  if (nums[i] < nums[i + 1]) {
  - result += (inc == 0) ? 1 : 0;
  + result += static_cast<int>(inc == 0);
  inc = 1;
  } else if (nums[i] > nums[i + 1]) {
  - result += (inc == 1) ? 1 : 0;
  + result += static_cast<int>(inc == 1);
  inc = 0;
  }
  }
  