Delete Node in a Linked List
2016-03-04 20:11
525 查看
class Solution { public: void deleteNode(ListNode* node) { ListNode *a; a = node->next; node->val = a->val; node->next = a->next; } };
相关文章推荐
- nodejs小问题:express不是内部或外部命令
- Nodejs初阶之express
- 使用WeCloud消息推送接口发送消息NodeJs版
- windows 下安装nodejs及其配置环境
- NodeJS、NPM安装配置与测试步骤(windows版本)
- neo4j 删除2个node间重复的relationship
- exports module.exports
- node.js async详细教程
- NodeJs【自学笔记】2
- 安装Node.js
- express的初体验
- leetcode 每日一题 Delete Node in a Linked List
- nw.js node-webkit系列(17)怎样打包和分发你的应用
- NodeJS学习笔记之Connect中间件模块(一)
- nodejs常用npm包
- 7.leetcode题目19: Remove Nth Node From End of List
- device tree 的device node 怎么才能device add to bus???
- NodeJS中的静态资源管理服务
- Leetcode ☞ 24. Swap Nodes in Pairs ☆
- nodejs npm常用命令