ياجماعة أحد يساعدني في حل هذا التمرين ؟ مطلوب مني
السؤال في ال
data structures with c++
السؤال :
using the node class. write a program that enters 5 integers into a linked list using the following algorithm:
for each input n , insert n at the front of the list. sean the remainder of the list , deleting all nodes which are less than n.
run the program three times using the following input . print the resulting list.
1,2,3,4,5
5,4,3,2,1
3,5,1,2,4
طبعاً البرنامج مفهومه انه ندخل هذه الأرقام من اليسار إلى اليمين باستخدام الnode class و الlinked list class بحيث عندما ندخل الرقم الأول وندخل الرقم الذي بعده فننظر إن كان الرقم الجديد اكبر نحذف الذي قبله
فيصبح الناتج النهائي
5
5
5,4