
Hashing
flyatcmu
这个作者很懒,什么都没留下…
展开
-
String Permutation
Given two strings, write a method to decide if one is a permutation of the other.ExampleExample 1: Input: "abcd", "bcad" Output: TrueExample 2: Input: "aac", "abc" Output: False思路:cou...原创 2019-12-30 05:47:25 · 155 阅读 · 0 评论 -
Strstr 两种算法
DescriptionImplementstrStrfunction in O(n + m) time.strStrreturn the first index of the target string in a source string. The length of the target string ismand the length of the source strin...原创 2019-10-19 12:55:02 · 253 阅读 · 0 评论