To keep the single quotes, which in my opinion make the code less cluttered and closer to the REPL, I use the pre-commit hook double-quote-string-fixer, in conjunction with black's option skip-string-normalization set…
Right...with template<typename T> optional<int> minimum_coins2(T target, std::vector<T> denominations) { std::unordered_set<T> values, newvalues; values.insert(target); auto k = 0; while (values.size() > 0) { k += 1;…
To keep the single quotes, which in my opinion make the code less cluttered and closer to the REPL, I use the pre-commit hook double-quote-string-fixer, in conjunction with black's option skip-string-normalization set…
Right...with template<typename T> optional<int> minimum_coins2(T target, std::vector<T> denominations) { std::unordered_set<T> values, newvalues; values.insert(target); auto k = 0; while (values.size() > 0) { k += 1;…