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
채택된 답변
Walter Roberson
2013년 3월 6일
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.}
댓글 수: 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!