摘要: Write a function to find the longest common prefix string amongst an array of strings. 阅读全文
posted @ 2015-05-14 18:52 m_CHaN 阅读(176) 评论(0) 推荐(0)
摘要: 罗马数字转为阿拉伯数字 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 阅读全文
posted @ 2015-05-14 18:35 m_CHaN 阅读(201) 评论(0) 推荐(0)
摘要: 括号匹配判断,关键思想:利用一个栈来保存前括号,然后有后括号来时弹出栈顶来判断。 阅读全文
posted @ 2015-05-14 18:09 m_CHaN 阅读(174) 评论(0) 推荐(0)