
LeetCode相似题目
文章平均质量分 85
Matcha_ee
这个作者很懒,什么都没留下…
展开
-
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", t = "car", return false.Note:You ma原创 2017-03-02 15:55:46 · 463 阅读 · 0 评论 -
LeetCode - 268. Missing Number
题目:Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.思路与步骤:思路1:先排序,然后将数组与下标比较,第一次出现不相等的下标即确实数据。学习别人的思路:思路2:先对0到原创 2017-02-22 22:51:25 · 240 阅读 · 0 评论