Career Cup
文章平均质量分 64
neuTblue
这个作者很懒,什么都没留下…
展开
-
CareerCup-150 1.1
Career Cup 刷题活动开始.............. 第一题:Implement an algorithm to determine if a string has all unique characters What if you can not use additional data structures? 思想:基本思想还是使用哈希,对数组中的每个元素对应到哈希表中并原创 2012-04-16 14:52:21 · 2757 阅读 · 2 评论 -
CareerCup 1.3
Problem: Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer NOTE: One or two additional variables are fine. An extra copy of the a原创 2012-04-18 11:24:39 · 947 阅读 · 0 评论 -
Career-Cup-150 1.2
Problem: Write code to reverse a C-Style String (C-String means that “abcd” is represented as five characters, including the null character ) Solution: 代码在下面 分析(1) 确定两个指针分别指向字符串的头和尾部,交换这两个指针所指向原创 2012-04-17 16:20:04 · 2515 阅读 · 0 评论