Start at list.root . Repeat {If the current list point is not the end of list, perform the action on list.value, and make list.next the current list point.}
Counting through linked lists?
1 次查看(过去 30 天)
显示 更早的评论
How would you count through a linked list? I mean like for an array, you would just use a for loop to count through the array and then put whatever you want the script or function to do with the array. How would you do this for a linked list?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!