码迷,mamicode.com
首页 >  
搜索关键字:anagram    ( 215个结果
LeetCode 242. 有效的字母异位词(Valid Anagram)
242. 有效的字母异位词 LeetCode242. Valid Anagram 题目描述 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的一个字母异位词。 示例 1: 输入: s = "anagram", t = "nagaram" 输出: true 示例 2: 输入: s = ...
分类:其他好文   时间:2019-05-03 22:51:53    阅读次数:168
LeetCode-242.Valid Anagram
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only ...
分类:其他好文   时间:2019-03-21 21:41:27    阅读次数:165
leetcode_1 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 = "nagaram" Output: true Ex ...
分类:其他好文   时间:2019-02-22 21:08:03    阅读次数:159
Leetcode 242.有效的字母异位词
有效的字母异位词 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的一个字母异位词。 示例 1: 输入: s = "anagram", t = "nagaram" 输出: true 示例 2: 输入: s = "rat", t = "car" 输出: false 说明:你可以假设字 ...
分类:其他好文   时间:2018-12-31 20:24:43    阅读次数:120
LeetCode算法题-Valid Anagram(Java实现)
这是悦乐书的第 198 次更新,第 205 篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第61题(顺位题号是242)。给定两个字符串s和t,写一个函数来确定t是否是s的anagram。例如: 输入:s =“anagram”,t =“nagaram” 输出:true 输 ...
分类:编程语言   时间:2018-12-11 11:22:13    阅读次数:209
POJ 2408 - Anagram Groups - [字典树]
题目链接:http://poj.org/problem?id=2408 World-renowned Prof. A. N. Agram's current research deals with large anagram groups. He has just found a new appli ...
分类:其他好文   时间:2018-11-20 01:29:29    阅读次数:183
leetcode242—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 = "nagaram"Output: trueExample 2:I... ...
分类:其他好文   时间:2018-11-13 14:28:07    阅读次数:142
[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 = "nagaram" Output: true Exam ...
分类:其他好文   时间:2018-10-14 14:14:27    阅读次数:133
242. Valid Anagram
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only ...
分类:其他好文   时间:2018-10-11 15:44:25    阅读次数:181
算法——查找排序相关面试题和leetcode使用
1、给两个字符串s和t,判断t是否为s的重新排列后组成的单词。 s = "anagram", t = "nagaram", return true. s = "rat", t = "car", return false. leetcode地址:https://leetcode.com/problem ...
分类:编程语言   时间:2018-10-05 21:06:22    阅读次数:253
215条   上一页 1 2 3 4 5 6 ... 22 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!