给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的一个字母异位词。 示例 1: 示例 2: 说明: 你可以假设字符串只包含小写字母。 进阶: 如果输入字符串包含 un ...
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 , return false. Note:You may assume the string con ...
2015-08-01 21:38 0 6049 推荐指数:
给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的一个字母异位词。 示例 1: 示例 2: 说明: 你可以假设字符串只包含小写字母。 进阶: 如果输入字符串包含 un ...
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 ...
这道题不难,但是有个坑,如果使用HashMap<Character,Integer>,那么注意: 这种方式,如果某个key出现的次数大于127,那么Integer类型就不再 ...
Given two lists A and B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A. We want ...
Combination Sum II Given a collection of candidate numbers (C) and a target number (T), find all un ...
Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary t ...
Palindrome Linked List Given a singly linked list, determine if it is a palindrome. Follow up:Coul ...
Counting Bits Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num ...