2014年5月19日

Hdu 4493

摘要: 题目链接注意四舍五入,保留到小数点后两位(如果存在的话)。附上代码: 1 /************************************************************************* 2 > File Name: 4493.cpp 3 > Au... 阅读全文

posted @ 2014-05-19 23:37 Stomach_ache 阅读(425) 评论(0) 推荐(0)

Leetcode ---- Swap Nodes in Pairs

摘要: 题目链接题意:给出单链表头指针,要求交换链表中每一对相邻的结点.注意:不可以改变链表中结点的值,只可以使用常量空间.附上代码: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val;... 阅读全文

posted @ 2014-05-19 18:24 Stomach_ache 阅读(137) 评论(0) 推荐(0)

导航