[Arrays and Lists - Lab] 12. Sum Adjacent Equal Numbers
- Read the input and parse it to list of numbers.
- Find the leftmost two adjacent equal cells.
- Replace them with their sum.
- Repeat (1) and (2) until no two equal adjacent cells survive.
5.Print the processed list of numbers
Не мога да се досетя за стъпка 4..
Решението ми без стъпка 4. http://pastebin.com/rM8Y4ptt
Благодаря.