
C++ → Leet Code Solutions - 003 - Longest Substring Without Repeating Characters
cpp, LeetCode, C++, C++17, string
Solution "Longest Substring Without Repeating Characters" on Leet Code
class Solution { public: int lengthOfLongestSubstring(string s) { string candidate_str = ""; string checking_str = ""; size_t position = std::string::npos; for (auto& ch : s) { position = checking_str.find(ch); if (position …

C++ → C ++ 17 - Lazy template functor with caching heavy function computation result
Developing the idea of caching the result of calculations of heavy functions , I propose to write a small template class, which will take the function as an argument, namely the lambda function, as the most universal an instrument within …

C++ → Using SFINAE to specialize template methods, depending on the type of container std::map or std::vector, passed as an argument
There was a problem: "write the second implementation of the template function", in which the same arguments are passed. That is, the signature of both functions completely coincides. The difference is that, as an argument, the std::vector containers and the …

C++ → C++ 17 - [[fallthrough]] attribute
Start at work to use a compiler that supports the standard C++17.
Actively we begin to use various features from this standard..
I was pleased with the [[fallthrough]] attribute for switch case constructions.
The essence of this attribute is that …
Fornex
Let me recommend you a great European Fornex hosting.
Fornex has proven itself to be a stable host over the years.
For Django projects I recommend VPS hosting
Following the link you will receive a 5% discount on shared hosting services, dedicated servers, VPS and VPN
View Hosting