Search posts, tags, users, and pages
Rehan Sayyed
Software Engineer Aspirant
class Solution { public: int longestPalindrome(string s) { int result = 0; unordered_set<int> setForLetters; for (char &ch : s) { if (setForLetters.count(ch)) { result += 2; set...
Markdown supported · ⌘↵ to post
No responses yet.