Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codechech NAME2 solution in C #5140

Open
2 of 4 tasks
ritish099 opened this issue Apr 4, 2020 · 2 comments
Open
2 of 4 tasks

Codechech NAME2 solution in C #5140

ritish099 opened this issue Apr 4, 2020 · 2 comments

Comments

@ritish099
Copy link
Contributor

This is a(n):

  • New algorithm
  • Update to an existing algorithm
  • Error
  • Proposal to the Repository

Details:

In an attempt to control the rise in population, Archer was asked to come up with
a plan. This time he is targeting marriages. Archer, being as intelligent as he
is, came up with the following plan:

A man with name M is allowed to marry a woman with name W, only if M is a
subsequence of W or W is a subsequence of M.

A is said to be a subsequence of B, if A can be obtained by deleting some elements
of B without changing the order of the remaining elements.

Your task is to determine whether a couple is allowed to marry or not, according
to Archer's rule.

@Ankit152
Copy link
Contributor

Ankit152 commented Apr 4, 2020

please assign this to me in C++.

@ritish099
Copy link
Contributor Author

Sir @arnavb , check it out

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

No branches or pull requests

2 participants