-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #1692
Conversation
Shortest Distance Between Words HarshCasper#1685
Java/cp/Shortest_Dist.java
Outdated
|
||
Scanner sc = new Scanner(System.in); | ||
System.out.println("Enter the list of words " + "\n" + "Words = "); | ||
arr = new ArrayList < > (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove spaces between <>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@plazzy99 done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comments wherever needed, it will help people to understand the approach used.
|
||
List < String > wd = new ArrayList(arr); | ||
while (t > 0) { | ||
String wd1 = sc.next(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prompt user to enter the words between which the distance is to be determined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atarax665 done.
Added Comment lines Prompted user to enter the words between which the distance is to be determined
@iamrajiv what is DeepSource error? |
@ErzaTitania-2001 DeepSource is a code analysis tool. Do not worry about that. It is yet to be set for repository properly. |
Have you read the Contributing Guidelines on Pull Requests?
yes
Description
(Write your answer here.)
Checklist
README.md
and link to my code.Related Issues or Pull Requests
Shortest Distance Between Words #1685 as assigned by @shraddhavp