count - How to find tail node of a singly linked list without having to traverse the list? -


i'm thinking it's possible if have count variable keeps track of # of records in list, can't jump element[count] tail in array.

this befuddling me, appreciated

one thought keep track of tail pointer build linked list. other way allow building linked list inserting nodes @ beginning, way can keep track of tail.


Comments

Popular posts from this blog

javascript - Feed FileReader from server side files -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -