help me pls c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

help me pls c++

Implémenter sans utiliser les structures de données de la bibliothèque standard et les listes intégrées au langage des listes, une liste chaînée de nombres et une opération qui, pour chaque élément pair, en ajoute une copie à la fin de la liste. Par exemple, si la liste d'origine était 1 2 3 4, le résultat devrait être une liste de 1 2 3 4 2 4. Veuillez noter que le simple fait d'afficher les nombres à l'écran ne suffit pas, c'est la liste convertie qui est nécessaire. N'oubliez pas de libérer la mémoire si vous utilisez un langage non-garbage collector.

31st Jan 2022, 1:46 PM
mechalikh mhamed
mechalikh mhamed - avatar
2 Answers
+ 1
Can you tell us few more test cases ?
1st Feb 2022, 6:46 AM
Commander Erwin Smith
Commander Erwin Smith - avatar
+ 1
Manav Roy help me pls c ++ Implement without using the data structures of the standard library and the lists integrated in the list layout, a list of numbers and an operation which, for each pair element, adds a copy to the bottom of the list. For example, if the list of origins is 1 2 3 4, the result should be a list of 1 2 3 4 2 4. Note that the simple occurrence of the numbers on the screen does not suffice, c ' is the conversion list that is required. Do not try to free the memory if you are using a non-load collector.
1st Feb 2022, 8:45 AM
Commander Erwin Smith
Commander Erwin Smith - avatar