-
Notifications
You must be signed in to change notification settings - Fork 0
Weds exercism #3
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
base: TuesExercism
Are you sure you want to change the base?
Conversation
pllearns
left a comment
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.
Solid work so far! I like your approaches to refactoring and I love seeing how much you have picked up along the way.
| let diamondLimit = alphabet.slice(0, alphabet.indexOf(letter)+1).split('') | ||
| let diamondArray = [] | ||
|
|
||
| // for (let i = 0; i < alphabet.length; i++) { |
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.
Is there a reason why you are keeping this commented code here?
| return true; | ||
| } | ||
| return false; | ||
| return firstStrand.length === secondStrand.length ? true : false |
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.
Great work in refactoring!!
| } | ||
| } | ||
| return hammingDistance | ||
| return firstStrand.split('').reduce( function(accumulator, current, index){ |
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.
I am really liking your approach. Reduce is going to be with us for quite a while in JavaScript.
| } | ||
|
|
||
| let largestProduct = 0 | ||
| for (let i = 0; i <= this.number.length-seriesNumber; i++) { |
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.
can you place a space in between this.number.length, seriesNumber, and the -?
No description provided.