摘要:
原问题在这里 Write a method to decide if two strings are anagrams or not.同位词(anagrams)是指两个单词的字符相同,但是字符的位置不同。算法一 算法思想:将两个单词的词汇进行排序,然后再进行比较。本质上就是让各个字... 阅读全文
摘要:
Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two addi... 阅读全文