#include <stdio.h>
struct ListNode{
int data;
struct ListNode *next;
};
void print(struct ListNode *head){
struct ListNode *cur=head;
for(cur=head;cur!=NULL;cur=cur->next){
printf("%d",cur->data);
}
cout<<endl;
}
int length(struct ListNode *head){
struct ListNode *cur=head;
int count=0;
for(cur=head;cur!=NULL;cur=cur->next){
count++;
}
return count;
}
struct ListNode *insert
int main() {
ListNode list;
}