Skip to content

added DecimalToHex#73

Merged
the-codingninja merged 5 commits intoTheAlgorithms:masterfrom
AlexDvorak:master
Mar 21, 2019
Merged

added DecimalToHex#73
the-codingninja merged 5 commits intoTheAlgorithms:masterfrom
AlexDvorak:master

Conversation

@AlexDvorak
Copy link
Copy Markdown
Contributor

contributes to #14

@ParthS007
Copy link
Copy Markdown
Member

This pull request introduces 1 alert when merging 859a83b into 2d50357 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Comment posted by LGTM.com

Copy link
Copy Markdown
Member

@the-codingninja the-codingninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the alert posted above

@AlexDvorak
Copy link
Copy Markdown
Contributor Author

AlexDvorak commented Oct 23, 2018

@ms10398 github says it’s up to date when i push but it isn’t and luhn.js should be in another branch

@AlexDvorak
Copy link
Copy Markdown
Contributor Author

AlexDvorak commented Oct 23, 2018

@ms10398 problem resolved LGTM

@christianbender
Copy link
Copy Markdown

@AlexDvorak BUG:

console.log(decimalToHex(125)); // should be 7D but it was D

FIX

Change your function decimalToHex(...) this way:

function decimalToHex(num){
    let hex_out = [];
    while(num > 15) {
        hex_out.push(intToHex(num%16));
        num = Math.floor(num / 16);
    }
    
    return intToHex(num) + hex_out.join("");  // BUG FIX
}

@christianbender christianbender added bug Something isn't working on hold Being discussed by the maintainers labels Feb 17, 2019
@christianbender
Copy link
Copy Markdown

@AlexDvorak Please seperate your pull request in multilpe PRs. One for each filing.

@ParthS007
Copy link
Copy Markdown
Member

This pull request introduces 1 alert when merging 97ac1c3 into 9cabd46 - view on LGTM.com

new alerts:

  • 1 for Syntax error

Comment posted by LGTM.com

@the-codingninja the-codingninja merged commit ad001c4 into TheAlgorithms:master Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working on hold Being discussed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants