摘要: Alice is taking a cryptography class and finding anagrams to be very useful. We consider two strings to be anagrams of each other if the first string' 阅读全文
posted @ 2018-02-28 14:27 mysunicey 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Sid is obsessed with reading short stories. Being a CS student, he is doing some interesting frequency analysis with the books. He chooses strings and 阅读全文
posted @ 2018-02-28 14:08 mysunicey 阅读(346) 评论(0) 推荐(0) 编辑
摘要: C++字符串长度获取函数以及其区别:(C/C++ strlen(str)和str.length()和str.size()都可以求字符串长度。其中str.length()和str.size()是用于求string类对象的成员函数 strlen(str)是用于求字符数组的长度,其参数是char*。)Probelm: 给你一个仅由小写字母组成的字符串。你的任务是找出一个位置,删掉那个字母之后,字符串变... 阅读全文
posted @ 2018-02-28 09:51 mysunicey 阅读(292) 评论(0) 推荐(0) 编辑