2016年8月31日

【LeetCode】242. Valid Anagram 解题小结

摘要: 题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", 阅读全文

posted @ 2016-08-31 14:50 医生工程师 阅读(146) 评论(0) 推荐(0) 编辑

【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 bijection between a l 阅读全文

posted @ 2016-08-31 10:14 医生工程师 阅读(169) 评论(0) 推荐(0) 编辑

【LeetCode】350. Intersection of Two Arrays II 解题小结

摘要: 题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. 相比较I,这个题目允许答案 阅读全文

posted @ 2016-08-31 05:38 医生工程师 阅读(134) 评论(0) 推荐(0) 编辑

【LeetCode】136. Single Number 解题小结

摘要: 题目: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime com 阅读全文

posted @ 2016-08-31 04:59 医生工程师 阅读(136) 评论(0) 推荐(0) 编辑

导航