摘要:
Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, return 1->2->3. /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) 阅读全文
posted @ 2013-04-27 23:39
冰点猎手
阅读(120)
评论(0)
推荐(0)
摘要:
Implement pow(x, n). class Solution {public: bool equal(double a, double b) { if(abs(a-b) >1); res *= res ; if(n&0x01 == 1) res *= x; return res; } double pow(double x, int n) { // Start typing your C/C++ solution below // DO NOT write... 阅读全文
posted @ 2013-04-27 23:25
冰点猎手
阅读(167)
评论(0)
推荐(0)

浙公网安备 33010602011771号