Algorithm for finding the k-th element of a single-chain list in C language (with complete source code)

The complete source code of the algorithm for finding the k-th element of the single-chain list in C language (definition, implementation, main function test)

#include <iostream>

struct Node {
   
    
    
  int data;
  Node * next;
  Node(int d) : data{
   
    
     d 

Guess you like

Origin blog.csdn.net/it_xiangqiang/article/details/115292822