摘要: Leetcode.290 Word Pattern Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a 阅读全文
posted @ 2020-08-13 15:18 mhp 阅读(91) 评论(0) 推荐(0)
摘要: Leetcode.202 Happy Number Write an algorithm to determine if a number n is "happy". A happy number is a number defined by the following process: Start 阅读全文
posted @ 2020-08-13 15:17 mhp 阅读(80) 评论(0) 推荐(0)
摘要: Leetcode.242 Valid Anagram Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "na 阅读全文
posted @ 2020-08-13 15:15 mhp 阅读(107) 评论(0) 推荐(0)
摘要: Leetcode.350 Intersection of Two Arrays II Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = [1,2,2,1], nums 阅读全文
posted @ 2020-08-13 15:11 mhp 阅读(117) 评论(0) 推荐(0)