摘要:
/*** Definition for singly-linked list.* struct ListNode {* int val;* ListNode *next;* ListNode(int x) : val(x), next(NULL) {}* };*/class Solution {pu... 阅读全文
posted @ 2015-12-10 15:14
雪之灵
阅读(107)
评论(0)
推荐(0)
摘要:
class Solution {public: int romanToInt(string s) { int length = s.size(); int result = 0; int pre =getnum (s[0]); for (int i = 1 ;i<length ;i++) {int ... 阅读全文
posted @ 2015-12-10 15:12
雪之灵
阅读(130)
评论(0)
推荐(0)
摘要:
For example, the 32-bit integer ’11' has binary representation00000000000000000000000000001011, so the function should return 3.class Solution {public... 阅读全文
posted @ 2015-12-10 15:06
雪之灵
阅读(125)
评论(0)
推荐(0)
摘要:
_______6______ / \ ___2__ ___8__ / \ / \ 0 _4 7 9 / \ 3 ... 阅读全文
posted @ 2015-12-10 15:05
雪之灵
阅读(116)
评论(0)
推荐(0)

浙公网安备 33010602011771号