Vulkan

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页

2014年4月8日

Cracking The Coding Interview 2.0 单链表

摘要: #include #include using namespace std;class linklist{private: class node { public: node(){} string data; node * next; }; node *first; int size;publ... 阅读全文

posted @ 2014-04-08 11:10 Vulkan 阅读(64) 评论(0) 推荐(0) 编辑

2014年4月3日

Cracking The Coding Interview 1.8

摘要: //Assume you have a method isSubstring which checks if one word is a substring of another. //Given two strings, s1 and s2, write code to check if s2 i... 阅读全文

posted @ 2014-04-03 12:25 Vulkan 阅读(127) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 1.7

摘要: //Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column is set to 0.////这题原答案就是要两个buffer来记录出现0的位置。不知道有没可以不用buffe... 阅读全文

posted @ 2014-04-03 10:39 Vulkan 阅读(106) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 1.6

摘要: //原文://// Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can... 阅读全文

posted @ 2014-04-03 09:45 Vulkan 阅读(144) 评论(0) 推荐(0) 编辑

2014年4月2日

Cracking The Coding Interview 1.5

摘要: //原文://// Write a method to replace all spaces in a string with ‘%20’.//#include using namespace std;char* replace(char * str){ if (str == NULL) { re... 阅读全文

posted @ 2014-04-02 15:52 Vulkan 阅读(121) 评论(0) 推荐(0) 编辑

2014年4月1日

Cracking The Coding Interview 1.4

摘要: //Write a method to decide if two strings are anagrams or not.//// 变位词(anagrams)指的是组成两个单词的字符相同,但位置不同的单词。比如说, abbcd和abcdb就是一对变位词。// // 使用一个固定数组大小记录各个... 阅读全文

posted @ 2014-04-01 16:47 Vulkan 阅读(107) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 1.3

摘要: //原文://// Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two addi... 阅读全文

posted @ 2014-04-01 16:28 Vulkan 阅读(100) 评论(0) 推荐(0) 编辑

2014年3月31日

Cracking The Coding Interview 1.2

摘要: //原文://// Write code to reverse a C-Style String. (C-String means that “abcd” is represented as five characters, including the null character.)//// 从前... 阅读全文

posted @ 2014-03-31 13:44 Vulkan 阅读(153) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 1.1

摘要: //原文://// Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures?// // 使用一个数... 阅读全文

posted @ 2014-03-31 13:26 Vulkan 阅读(140) 评论(0) 推荐(0) 编辑

2014年1月15日

error MSB8008: 指定的平台工具集(V120)未安装或无效。

摘要: 打开项目属性->配置属性->右面,平台工作集,选为v10如下图 阅读全文

posted @ 2014-01-15 14:33 Vulkan 阅读(233) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页

导航