Skip to content

[Feature]: Add 245. Shortest Word Distance III solution #3890

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

Closed
4 tasks done
sivaprasath2004 opened this issue Jul 25, 2024 · 3 comments · Fixed by #3902
Closed
4 tasks done

[Feature]: Add 245. Shortest Word Distance III solution #3890

sivaprasath2004 opened this issue Jul 25, 2024 · 3 comments · Fixed by #3902
Assignees
Labels
CodeHarborHub - Thanks for creating an issue! dsa-solution Label for solutions related to Data Structures & Algorithms. gssoc GirlScript Summer of Code | Contributor GSSOC'24 GirlScript Summer of Code | Contributor level1 GirlScript Summer of Code | Contributor's Levels

Comments

@sivaprasath2004
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

245.Shortest Word Distance III (Premium / Problem)

  • Given an array of strings wordsDict and two strings that already exist in the array word1 and word2, return the shortest distance between the occurrence of these two words in the list.

  • Note that word1 and word2 may be the same. It is guaranteed that they represent two individual words in the list.

Example 1:
- Input: wordsDict = [“practice”, “makes”, “perfect”, “coding”, “makes”], word1 = “makes”, word2 = “coding”
- Output: 1

Example 2:
- Input: wordsDict = [“practice”, “makes”, “perfect”, “coding”, “makes”], word1 = “makes”, word2 = “makes”
- Output: 3

Constraints:

1 <= wordsDict.length <= 105
1 <= wordsDict[i].length <= 10

Use Case

-please assign me..

Benefits

No response

Add ScreenShots

No response

Priority

High

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24 contributor
  • I have starred the repository
@sivaprasath2004 sivaprasath2004 added the enhancement New feature or request label Jul 25, 2024
Copy link

Hi @sivaprasath2004! Thanks for opening this issue. We appreciate your contribution to this open-source project. Your input is valuable and we aim to respond or assign your issue as soon as possible. Thanks again!

@sivaprasath2004
Copy link
Contributor Author

Hello @ajay-dhangar please assign me..

@ajay-dhangar ajay-dhangar added GSSOC'24 GirlScript Summer of Code | Contributor level1 GirlScript Summer of Code | Contributor's Levels gssoc GirlScript Summer of Code | Contributor dsa-solution Label for solutions related to Data Structures & Algorithms. labels Jul 26, 2024
Copy link

Hello @sivaprasath2004! Your issue #3890 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CodeHarborHub - Thanks for creating an issue! dsa-solution Label for solutions related to Data Structures & Algorithms. gssoc GirlScript Summer of Code | Contributor GSSOC'24 GirlScript Summer of Code | Contributor level1 GirlScript Summer of Code | Contributor's Levels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants