摘要: 题目: Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999 解答: 阅读全文
posted @ 2019-02-23 15:49 林木声 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a matrix of m ✕ n elements (m rows, n columns), return all elements of the matrix in spiral order.For example, given the following matrix:[[ 阅读全文
posted @ 2019-02-23 15:14 林木声 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example, given the below binary tree,1/ \2 4 阅读全文
posted @ 2019-02-23 14:56 林木声 阅读(97) 评论(0) 推荐(0) 编辑