cracking the coding interview No1.1
来源:互联网 发布:数据库存储过程优点 编辑:程序博客网 时间:2024/05/18 20:06
1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannnot use additional data structures?
bool isUnique(char *str){int hash[256];memset(hash,0,sizeof(hash));if (str == NULL){return false;}while (*str != '\0'){if(hash[*str]){return false;}hash[*str] = 1;str++;}return true;}
0 0
- cracking the coding interview No1.1
- cracking the coding interview No1.2
- cracking the coding interview No1.3
- cracking the coding interview No1.4
- cracking the coding interview No1.5
- cracking the coding interview No1.6
- cracking the coding interview No1.7
- cracking the coding interview No1.8
- Cracking the Coding Interview
- 《Cracking the coding interview》
- Cracking The Coding Interview
- Cracking the coding interview
- Cracking the coding interview
- Cracking The Coding Interview--Q1.1
- Cracking the coding interview Q1.1
- Cracking the coding interview--Q1.1
- Cracking the coding interview Q1.1
- Cracking the coding interview Q1.1
- 最大流模板【EdmondsKarp算法,简称EK算法,O(m^2n)】
- hdu 2082(找单词)(母函数,模板)
- iOS应用程序生命周期(前后台切换,应用的各种状态)详解
- MySQL 插入数据时,中文乱码问题的解决
- VC++进程注入
- cracking the coding interview No1.1
- 主存与Cache的地址映射
- 如何实现WebBrowser查找
- 我们的一生不过是在营销自己
- C基础 - 数据类型(3)
- 第8周项目3.1分段函数求值
- invalidate 和 updatawindow的区别
- hdoj 3351 Seinfeld 【栈的简单应用】
- HDU1250 Hat's Fibonacci