1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00
programming-challenges/challenges/consecutive-numbers
2021-06-28 20:15:35 +02:00
..
solutions feat(solutions): add consecutive-numbers/python/function 2021-06-28 20:15:35 +02:00
test feat(challenges): add consecutive-numbers 2021-06-28 20:04:14 +02:00
README.md feat(challenges): add consecutive-numbers 2021-06-28 20:04:14 +02:00

consecutive-numbers

Created by @Divlo on 28 June 2021.

Instructions

Write a function which takes a list of integers, and which returns the (possibly empty) list of pairs of successive consecutive integers that there may be in the list.

Input

7
1
2
5
3
4

Output

1, 2
3, 4

Examples

See the test folder for examples of input/output.