message: Update last-stone-weight-ii.cpp
diff: @@ -5,7 +5,6 @@ class Solution {
  public:
  int lastStoneWeightII(vector<int>& stones) {
  unordered_set<int> dp = {0};
  - const auto& S = accumulate(stones.cbegin(), stones.cend(), 0);
  for (const auto& stone : stones) {
  auto tmp(dp);
  for (const auto& i : dp) {
  @@ -13,6 +12,7 @@ public:
  }
  dp = move(tmp);
  };
  + const auto& S = accumulate(stones.cbegin(), stones.cend(), 0);
  auto result = numeric_limits<int>::max();
  for (const auto& i : dp) {
  result = min(result, abs(i - (S - i)));
  