Skip to content

Create EqualizeAB#42

Open
ayush-1123 wants to merge 1 commit into
abhishekSharmaGithub:mainfrom
ayush-1123:patch-1
Open

Create EqualizeAB#42
ayush-1123 wants to merge 1 commit into
abhishekSharmaGithub:mainfrom
ayush-1123:patch-1

Conversation

@ayush-1123

Copy link
Copy Markdown
Contributor

Problem Statement:
You are given two numbers AA and BB along with an integer XX. In one operation you can do one of the following: Set A = A + X and B = B - X
Set A = A - X and B = B + X
Determine if you can make A and B equal after applying the operation any number of times (possibly zero).

Problem Statement:
You are given two numbers AA and BB along with an integer XX. In one operation you can do one of the following:
Set A = A + X and B = B - X
Set A = A - X and B = B + X
Determine if you can make A and B equal after applying the operation any number of times (possibly zero).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant