Message from C, C++ talks

July 2019

— /warn

— Only admins can execute this command!

— Someone who can explain how to compare two consecutive integers (subsequence) in a linked list?

Example:
1, 2, 5, 13, 7, 8, 23

Output (with sum subsequence):
3, 5, 13, 15, 23

Thx!

Message permanent page

— Language C.

— 

If you need it, I have a code designed by me, but I have a block on the consecutive comparison conditional..

— Explain sum logic

— Why 1+2 and not 2+5?

— No, 1+2 and 7+8, sum of consecutive numbers (subsequence)..

— Ok, understand know(just don't know meaning of "consecutive")

— Give me your code

— Give me your code too

— Ok sorry Alexander!

— The exercise asks me to eliminate consecutive elements (1,2,7,8) and replace them with their sum (1+2 and 7+8)

Message permanent page

— I love this chat

— Ok