How to Find Words That Can Be Formed by Characters? August 19, 2019 algorithms, c / c++, string No Comments You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only … [Continue Reading...]
How to Convert Set to Vector in C++? May 6, 2019 c / c++, programming languages, tips, tricks No Comments Let’s say our task is to convert a set or unordered_set in C++ to std::vector, what would you do? Given the following set with integers (or other types) unordered_set<int> … [Continue Reading...]