+ 1

binary

hello can someone please explain to me how binary works, i made a text to binary and a binary to text converter code, but my friend says that its wrong. https://code.sololearn.com/cv8d0YYRH04s/?ref=app https://code.sololearn.com/c4Kk7uUsAYIH/?ref=app

19th Jun 2018, 9:12 PM
Cat Sauce
Cat Sauce - avatar
1 Odpowiedź
+ 5
What you coded works fine for numbers between 0 and 255. Your friend may say it is wrong because most people wouldn't code it that way. However, what matters isn't what others say, but does it work for all tests. Your code is does so you are good.
19th Jun 2018, 11:39 PM
John Wells
John Wells - avatar