摘要:
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 @ 2015-07-17 06:52
Grandyang
阅读(1541)
评论(0)
推荐(0)
摘要:
1.7 Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0.LeetCode中的原题,请参见我之前的博客Set Matrix Zeroes 矩... 阅读全文
posted @ 2015-07-17 06:21
Grandyang
阅读(909)
评论(0)
推荐(0)
摘要:
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 you d... 阅读全文
posted @ 2015-07-17 05:21
Grandyang
阅读(846)
评论(0)
推荐(0)
摘要:
1.5 Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a... 阅读全文
posted @ 2015-07-17 03:49
Grandyang
阅读(4313)
评论(0)
推荐(0)

浙公网安备 33010602011771号