Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.

Added a Cpp program (Check if stack elements are pairwise consecutive) #282

Open
Mrinalini99 wants to merge 2 commits intoamrs-tech:masterfrom
Mrinalini99:master
Open

Added a Cpp program (Check if stack elements are pairwise consecutive) #282
Mrinalini99 wants to merge 2 commits intoamrs-tech:masterfrom
Mrinalini99:master

Conversation

@Mrinalini99
Copy link

I added a Cpp program to check if stack elements are pairwise consecutive.

For Example :- Input : stack = [4, 5, -2, -3, 11, 10, 5, 6, 20]
Output : Yes
Explanation - Each of the pairs (4, 5), (-2, -3), (11, 10) and (5, 6) consists of consecutive numbers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant