![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 385 阅读 · 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 · 1299 阅读 · 0 评论