文件名称:Single-linked-list
-
所属分类:
- 标签属性:
- 上传时间:2014-11-21
-
文件大小:1.11kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
已知一个带有表头结点的单链表,结点结构为 ,假设该链表只给出了头指针list。在不改变链表的前提下,请设计一个尽可能高效的算法,查找链表中倒数第k个位置上的结点(k为正整数)。若查找成功,算法输出该结点的data域的值,并返回1;否则,只返回0。
-Given a single linked list with a header node, node structure, assuming that the list gives only the head pointer list. On the premise of not changing the list, please design a possible and efficient algorithm, the penultimate K position on the search list nodes (k is a positive integer). If the search is successful, the data domain algorithm for the output of the node values, and returns 1 otherwise, only to return 0.
-Given a single linked list with a header node, node structure, assuming that the list gives only the head pointer list. On the premise of not changing the list, please design a possible and efficient algorithm, the penultimate K position on the search list nodes (k is a positive integer). If the search is successful, the data domain algorithm for the output of the node values, and returns 1 otherwise, only to return 0.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Single linked list/
Single linked list/Single linked list.txt
Single linked list/Single linked list.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.