We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int SearchRearK(LNode *L, int k) { int count=0;//用来计数 LNode *q=L->link; while(p!=NULL) { if(count<k) count++; else q=q->link;//当count等于开始,q和p同步向后移动 p=p->link; } if(count<k) return 0;//如果链表节点个数小于k else { printf("%d",q->data); return 1; } }
The text was updated successfully, but these errors were encountered:
确实是的,感谢说明更正
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: