-->
当前位置:首页 > 题库

PROGRAMMING:Linked list operation

Luz5年前 (2021-05-10)题库409
Programming implementation: input several positive integers (input - 1 as the end flag), establish a one-way linked list, delete the even value node and output. Linked list nodes are defined as:
struct Node{
int data;
struct Node *next;
}
Input and output example: description in brackets
###Input example:
```in
1 2 3 4 5 6 7 -1
```
###Output example:
```out
1 3 5 7
```






answer:If there is no answer, please comment