摘要: Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Solution:public class Solution { public S... 阅读全文
posted @ 2014-04-24 22:21 xchangcheng 阅读(109) 评论(0) 推荐(0)
摘要: Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Solution:class Solution {public: int roma... 阅读全文
posted @ 2014-04-24 22:18 xchangcheng 阅读(134) 评论(0) 推荐(0)
摘要: Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t... 阅读全文
posted @ 2014-04-24 22:11 xchangcheng 阅读(181) 评论(0) 推荐(0)