1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structure?
这道题让我们判断一个字符串中是否有重复的字符,要求不用特殊的数据结构,这里应该是指哈希表之类的不让用。像普通的整型数组应该还是能用的,这道题...
1.3 Given two strings, write a method to decide if one is a permutation of the other.
这道题给定我们两个字符串,让我们判断一个是否为另一个的全排列字符串。在LeetCode中,关于排列的题有如下几道,Permutation Sequence 序列排序,Permutations 全排列, Permutations...