摘要:
Remove ElementGiven an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't matter what you leave beyond the new length. 1 class Solution { 2 public: 3 int removeElement(int A[], int n, int elem) { 4 // ... 阅读全文
posted @ 2013-10-21 16:21
昱铭
阅读(126)
评论(0)
推荐(0)
摘要:
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.====================================== 1 class Solution { 2 public: 3 string intToRoman(int num) { 4 // Note: The Solution object is instantiated only once and is reused by each test... 阅读全文
posted @ 2013-10-21 16:17
昱铭
阅读(135)
评论(0)
推荐(0)

浙公网安备 33010602011771号