Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pchf
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
pchf
5y ago
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 to true.
2.
▲
by
pchf
7y ago
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() &