2018年2月18日

leetcode 412. Fizz Buzz

摘要: vector fizzBuzz(int n) { vector ret; for (int i = 1; i <= n; i++) { bool three = i % 3 == 0; bool five = i % 5 == 0; if (three && five... 阅读全文

posted @ 2018-02-18 14:08 willaty 阅读(125) 评论(0) 推荐(0) 编辑

leetcode 409. Longest Palindrome

摘要: int longestPalindrome(string s) { unordered_map m; for (char i : s) m[i]++; bool flag = false; int ret = 0; for (auto i : m) { ... 阅读全文

posted @ 2018-02-18 14:07 willaty 阅读(94) 评论(0) 推荐(0) 编辑

导航