码迷,mamicode.com
首页 >  
搜索关键字:anagram    ( 215个结果
LeetCode--ValidAnagram
题目: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-01-14 20:39:58    阅读次数:144
Jan 12 - Valid Anagram; Hash Table; Sort; Alphabets; String;
创建两个数组存储字母的个数,再对比两个数组是否相同代码:public class Solution { public boolean isAnagram(String s, String t) { int[] alphabets1 = new int[26]; in...
分类:其他好文   时间:2016-01-13 12:20:09    阅读次数:164
LeetCode 242 Valid Anagram(有效字谜)(*)
翻译给定两个字符串s和t,写一个函数来确定是否t是s的字谜。例如, s = "anagram", t = "nagaram", 返回true s = "rat", t = "car", 返回false备注: 你可以假设字符串只包含小写字母。跟进: 如果输入包含unicode字符该怎么做?你的解决方案能够适应这种情况吗?原文Given two strings s and t, write a func...
分类:其他好文   时间:2016-01-12 01:25:40    阅读次数:212
[LeetCode]242.Valid Anagram
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 = “r...
分类:其他好文   时间:2015-12-27 14:33:44    阅读次数:110
242_Valid Anagram
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:其他好文   时间:2015-12-25 18:42:15    阅读次数:117
Anagrams问题
问题描述 Anagrams指的是具有如下特性的两个单词:在这两个单词当中,每一个英文字母(不区分大小写)所出现的次数都是相同的。例如,“Unclear”和“Nuclear”、“Rimon”和“MinOR”都是Anagrams。编写一个程序,输入两个单词,然后判断一下,这两个单词是否是Anagram....
分类:其他好文   时间:2015-12-24 13:17:13    阅读次数:96
Leetcode: 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 = ...
分类:其他好文   时间:2015-12-20 14:32:37    阅读次数:180
Valid Anagram
Total Accepted:43676Total Submissions:111568Difficulty:EasyGiven two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "...
分类:其他好文   时间:2015-12-14 21:01:00    阅读次数:149
Valid Anagram
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:其他好文   时间:2015-12-09 17:29:24    阅读次数:155
leetcode:242 Valid Anagram-每日编程第八题
Valid AnagramTotal Accepted:42673Total Submissions:109227Difficulty:EasyGiven two stringssandt, write a function to determine iftis an anagram ofs.For...
分类:其他好文   时间:2015-12-09 16:46:34    阅读次数:112
215条   上一页 1 ... 11 12 13 14 15 ... 22 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!