- 博客(3)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. 设置双指针p,q,中间间隔n-1,同时移动,q到最后时,p为要删除的节点 /** * Definition for singly-linked list. * struct ListNode { * int v
2013-10-31 21:22:33 428
原创 leetcode :Single Number II
原题:Given an array of integers, every element appears three times except for one. Find that single one. class Solution { public: int singleNumber(int A[], int n) { // Note: The Solu
2013-10-31 20:21:44 476
原创 求全排列和组合
第一种方法耗费空间比较大,第二种方法更有技巧 #include using namespace std; #include #include char a[100]; bool vis[100]; int ct[100]; int n; int cst ; void dfs(char a[],int i){ if(i == n){ fo
2013-10-31 20:07:05 488
imagine cup 比赛 项目愿景 报告
2011-07-03
用于 进货 销售 存储 货物 管理客户 的软件
2011-07-03
将使用的servlet打包放在lib下面,运行时显示路径错误
2015-05-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人