摘要: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh"。 思路:比较容易从代码看明白。注意下StringBuffe 阅读全文
posted @ 2016-04-27 17:21 fisherinbox 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro 阅读全文
posted @ 2016-04-27 16:29 fisherinbox 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use extra sp 阅读全文
posted @ 2016-04-27 14:49 fisherinbox 阅读(171) 评论(0) 推荐(0) 编辑