I am not sure the reason I am not getting the desired outcome is because I am missing some sort of data type conversion.
I am trying to convert the array of numbers into a binary value.
Input = [1,1,1,1,0,1]
Desired output= 11101
Thank you
I am not sure the reason I am not getting the desired outcome is because I am missing some sort of data type conversion.
I am trying to convert the array of numbers into a binary value.
Input = [1,1,1,1,0,1]
Desired output= 11101
Thank you