![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cracking the code interview
yundomo
这个作者很懒,什么都没留下…
展开
-
cracking the code interview problem 1.3
//Given two Strings,write a method to decide if one is a permutation of the other.//ask what the complexity of time, can we use sort first?//if we can use sort:public class Solution { public stati原创 2014-02-19 04:05:16 · 1146 阅读 · 0 评论 -
cracking the code interview problem 1.1
public class Solution { public static boolean isUnique(String str){ if(str.length()>256) return false; boolean[] visited = new boolean[256]; for(int i=0;i<str.length();i++){ int val = str原创 2014-02-19 04:04:13 · 804 阅读 · 0 评论