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

Shortest Distance Between Words #1685

Closed
ErzaTitania-2001 opened this issue Dec 25, 2020 · 7 comments
Closed

Shortest Distance Between Words #1685

ErzaTitania-2001 opened this issue Dec 25, 2020 · 7 comments

Comments

@ErzaTitania-2001
Copy link
Contributor

ErzaTitania-2001 commented Dec 25, 2020

🚀 Feature

Given a list of words and two words word1 and word2, find the shortest distance between those two words from the list.

Input : words=["practice", "makes", "perfect", "coding","makes"]
word1="coding"
word2="practice"
Output: 3
word1="coding"
word2="makes"
Output : 1

Have you read the Contributing Guidelines on Pull Requests?

yes

Motivation

Beneficial for Competitive Programming

Pitch

Interview question

@ErzaTitania-2001
Copy link
Contributor Author

@shraddhavp can I be assigned this?

@shraddhavp
Copy link
Contributor

assigned @ErzaTitania-2001

ErzaTitania-2001 added a commit to ErzaTitania-2001/NeoAlgo that referenced this issue Dec 25, 2020
Shortest Distance Between Words HarshCasper#1685
@Rishikeshrajrxl
Copy link
Contributor

Rishikeshrajrxl commented Dec 26, 2020

I cann do this in c++ and Java, do assign me

iamrajiv added a commit that referenced this issue Dec 28, 2020
@kapilkumar2001
Copy link

I would like to do this in python under DWOC

@shraddhavp
Copy link
Contributor

@Rishikeshrajrxl go ahead with cpp

@shraddhavp
Copy link
Contributor

@kapilkumar2001 go ahead with python

JayantGoel001 pushed a commit to JayantGoel001/NeoAlgo that referenced this issue Dec 31, 2020
Shortest Distance Between Words HarshCasper#1685
@github-actions
Copy link

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants