摘要: problem:Given two string, write a method to decide if one is a permutation of the otherSolution:1. sort two strings and return weather str1 equal to s... 阅读全文
posted @ 2015-08-15 04:10 haochen_Mark 阅读(111) 评论(0) 推荐(0)
摘要: problem:Implement a function void reverse(char *str) in C and C++ which reverse a null-terminated string.The solution:1. use another pointer end point... 阅读全文
posted @ 2015-08-15 02:11 haochen_Mark 阅读(139) 评论(0) 推荐(0)
摘要: Promble:Implement an algorithm to determine if a string has all unique characters. What if you cannot use addtional data structure?My solution:1.ckeck... 阅读全文
posted @ 2015-08-15 00:36 haochen_Mark 阅读(195) 评论(0) 推荐(0)