Problem statement 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 t ...
分类:
其他好文 时间:
2017-06-23 10:16:31
阅读次数:
99
https://leetcode.com/problems/valid-anagram/#/description Given two strings s and t, write a function to determine if t is an anagram of s. For exampl ...
分类:
其他好文 时间:
2017-06-10 18:28:01
阅读次数:
254
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 = ...
分类:
其他好文 时间:
2017-06-03 12:47:45
阅读次数:
147
Valid Anagram:注意所有字符都需要利用到 ...
分类:
其他好文 时间:
2017-04-23 18:10:15
阅读次数:
100
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 ...
分类:
其他好文 时间:
2017-04-21 20:07:08
阅读次数:
101
public class Solution { /** * @param s: The first string * @param b: The second string * @return true or false */ public boolean anagram(String s, Str... ...
分类:
其他好文 时间:
2017-02-21 22:01:41
阅读次数:
318
错误1"aa""bb"static public bool IsAnagram(string s, string t) { int sLength = s.Length; int tLength = t.Length; if (sLength != tLength) { return false; ... ...
分类:
其他好文 时间:
2017-01-10 23:40:51
阅读次数:
216
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 = ...
分类:
其他好文 时间:
2016-12-30 20:24:23
阅读次数:
163
(1)Valid Anagram 解题思路: 使用一个数组,首先遍历S相应位置加1,然后遍历T,判断此时如果相应位置为零返回FALSE,否则就减一。T遍历完毕后返回true. 代码如下: 1 public class Solution { 2 public boolean isAnagram(Str ...
分类:
其他好文 时间:
2016-12-11 18:12:13
阅读次数:
174
Problem: 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 = " ...
分类:
其他好文 时间:
2016-10-29 07:46:07
阅读次数:
220