-
Notifications
You must be signed in to change notification settings - Fork 23
Feat/Adds a getConcatenation and findWordsContaining method in Java and TS #388
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
Feat/Adds a getConcatenation and findWordsContaining method in Java and TS #388
Conversation
…sful with only 1 file
return ans; | ||
} | ||
|
||
public static void main(String[] args) { |
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.
You should not have this here. What purpose does it serve?
|
||
// Runs a loop that will iterate through each character in the word. | ||
for (int i = 0; i < words.length; i++) { | ||
if (words[i].indexOf(x) != -1) { // will check to see if 'x' exists inside of the word |
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.
These comments should be on the line above the code it annotates, not after the line.
lesson_11/arrays_ts/src/lesson11.ts
Outdated
export function getConcatenation(nums: number[]): number[] { | ||
return []; | ||
const n = nums.length; //Creates a variable named n that is the length of nums |
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.
Need to fix code formatting here, looks wrong.
lesson_11/arrays_ts/src/lesson11.ts
Outdated
export function findWordsContaining(words: string[], x: string): number[] { | ||
return []; | ||
const elListo: number[] = [] //creates a new array named elListo |
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.
What is elListo
? Fix variable name please to something more clear.
lesson_11/arrays_ts/src/lesson11.ts
Outdated
} | ||
|
||
|
||
//Test Cases |
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.
Nope, remove this and the stuff below. This code should be in formal test files.
Hello Anthony, I requested review because, I have put all the comments above the code they belong to, removed my useless main methods, and made variables more clear. Thank you! |
Hello inside this pull request you will find both Java and TS methods for getConcatenation and findWordsContaining method. You should see them inside Lesson11.java and Lesson11.ts Thank you!