
C
MSY_C
你的快乐就是我最大的幸福
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
链表给定节点删除
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.void deleteNode(struct ListNode* node) { if(node == NULL) return; node->val = no原创 2015-10-21 00:07:39 · 474 阅读 · 0 评论 -
数组内部元素操作,将所有0移到后尾
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.void moveZeroes(int* nums, int numsSize) { int i=0, j=0;原创 2015-10-21 00:52:48 · 1342 阅读 · 0 评论