
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++ → Leed Code Solutions - 002 - Add Two Numbers
Solution "Add Two Numbers" on Leet Code
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode …

C++ → Leet Code Solutions - 001 - Two Sum
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