Vulkan

2014年4月23日

Cracking The Coding Interview

摘要: //原文://// Write a method to sort an array of strings so that all the anagrams are next to each other.// 译文:// 写一个函数对字符串数组排序,使得所有的变位词都相邻。//参考@hawstein#... 阅读全文

posted @ 2014-04-23 14:40 Vulkan 阅读(152) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 9.1

摘要: //原文://// You are given two sorted arrays, A and B, and A has a large enough buffer at the end to hold B. Write a method to merge B into A in sorted o... 阅读全文

posted @ 2014-04-23 13:50 Vulkan 阅读(87) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 9.0

摘要: #include #include using namespace std;void mswap(int &a, int &b){ int c = a; a = b; b = c;}void print(int *a, int size){ for (int i = 0; i a[i+1]) {... 阅读全文

posted @ 2014-04-23 13:24 Vulkan 阅读(132) 评论(0) 推荐(0) 编辑

导航