Skip to content

Conversation

@breyana
Copy link
Collaborator

@breyana breyana commented Mar 2, 2017

No description provided.

Copy link

@pllearns pllearns left a 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++) {
Copy link

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
Copy link

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){
Copy link

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++) {
Copy link

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 -?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants