+ 1
What's wrong with this?
What is wrong here? https://code.sololearn.com/cPm057m6OGfD/?ref=app
4 odpowiedzi
+ 2
Why do you think something is wrong, it is working from first sight.
+ 1
It returns wrong output:(
+ 1
Hm... Yep, you are using an algorithm witch is similar to dividing by 2 when you need to convert decimal to binary, but I think it will not work this way, since for opposite transformation algorithm will be other. In case of hexadecimal system you will need to convert to chars or from chars... You can convert from decimal to binary if you will get rid of first for cycle at str 22
+ 1
Thanks 4 helping... I'll try again and come back.