quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryعلوم الحاسوب schoolبكالوريوس event_available2026-07-15

السؤال

Transcribed Image Text:

3. An Unsorted Type ADT is to be extended by the addition of function Split Lists, which has the following specifications: Split Lists(UnsortedType list, ItemType item, UnsortedType& list1, Unsorted Type& list2) Function: Divides list into two lists according to the key of item. Preconditions: list has been initialized and is not empty. Postconditions: list1 contains all the items of list whose keys are less than or equal to item's key; list2 contains all the items of list whose keys are greater than item's key. a. Implement Split Lists as an array-based member function of the Unsorted List ADT. b. Implement Split Lists as a linked member function of the Unsorted List ADT.

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top