You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.
I'm curious about the solution for convertToBinary. Currently, it's breaking off each bit and sticking it into an array to join later. I used num.toString(2) for the initial conversion and left-padded as necessary. Am I missing something? Does that solution not work everywhere? AFAIK, it is, but I may be wrong. Perhaps it's a performance issue, but it seems like it wouldn't be.
I can send a PR if there's agreement here.
The text was updated successfully, but these errors were encountered:
notaurologist
changed the title
Alternate solution for convertToBinary?
Alternate solution for convertToBinary?
Nov 20, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm curious about the solution for
convertToBinary
. Currently, it's breaking off each bit and sticking it into an array to join later. I usednum.toString(2)
for the initial conversion and left-padded as necessary. Am I missing something? Does that solution not work everywhere? AFAIK, it is, but I may be wrong. Perhaps it's a performance issue, but it seems like it wouldn't be.I can send a PR if there's agreement here.
The text was updated successfully, but these errors were encountered: