• למודעות דרושים בתחום Algorithms לחצו כאן.
בנושא: Algorithms
0 תגובות
0 תגובות
השאלה:
ממש הוספת איבר בסוף רשימה מקושרת
התשובה:
דוגמאת קוד מצורפת:
procedure AddToTail(element)
if(this is the Tail)
tail->next = new Node(el)
tail = tail->next
endif
else head = tail = new Node(el)
end procedure
דוגמאת קוד מצורפת:
procedure AddToTail(element)
if(this is the Tail)
tail->next = new Node(el)
tail = tail->next
endif
else head = tail = new Node(el)
end procedure
לשאלה זו אין כרגע תגובות.
| תגובה לשאלה מספר : 749 בנושא : Algorithms |
![]() |
||||
| שם מלא : | כתובת אימייל : | ||||
| תוכן תגובה : | |||||
הוסף תגובה
שלח תגובה



