摘要: 1.2 Implement a function void reverse(char *str) in C or C++ which reverses a null-terminated string.这道题让我们用C++或C语言来翻转一个字符串,不算一道难题,在之前那道Reverse Words ... 阅读全文
posted @ 2015-07-15 23:03 Grandyang 阅读(1046) 评论(0) 推荐(0)
摘要: 1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structure?这道题让我们判断一个字符串中是否有重复的字符... 阅读全文
posted @ 2015-07-15 13:13 Grandyang 阅读(3075) 评论(0) 推荐(0)
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - 阅读全文
posted @ 2015-07-15 10:20 Grandyang 阅读(15762) 评论(2) 推荐(0)
Fork me on GitHub