Removing the same elements in a sorted sheet (list)
📁 пример
For example, I have a sheet x = = a, a, a, f, h, k, k] . I need to do so that there would be only one a in this sheet and one k , i.e. Delete extra similar elements, do not touch the rest. Similar elements are always nearby, because The sheet is sorted. How to realize the removal of these extra elements?
Ответов пока нет.
Войдите чтобы оставить ответ