Vulkan

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) 编辑

导航