# Chuck Norris puzzle discussion

#1

#2

I have a problem with character ‘%’. Test 3 tells me that ASCII code for ‘%’ should start with a 0, but Python3 keeps telling me that it starts with 1. Could someone tell me where I’m wrong, please ?

#3

The input message consists of ASCII characters (7-bit)

this means if you have a char ‘%’, which binary value is ‘100101’, you have to read it as ‘0100101’ (7 characters)

#4

That was so obvious, thank you very much, ced_29 !

#5

I wondered why ‘%’ didn’t works until I saw that Ascii char of % begin by 0

#6

I had the same problem with ‘%’ in Groovy (Java). for non alphanumeric values Integer.toBinaryString() was returning 6 not 7 bits.

#7

and this is easy? D: I don’t know how to convert a char to his binary value xd

#8

#9

The input message consists of ASCII characters (7-bit)

7!

#10

To properly do this the logic needs to use and logic with 2^bit where bit goes from 6 to 0. You see if the bit is on or off then you start counting from 1 the number of occurrences. If you end while counting occurrences you need to load another character and look at bits again. It can be wrapped up nicely in a tight loop. No string ops needed…

#11

All tests done and after submit i see “Final Score 100%” but in puzzle list i see “0%”. what’s wrong? The same thing with “MIME type” puzzle

#12

Is it still the case after a little time ? I read in some topic that scores are updated every x minutes, not right away

#13

Chuck Norris puzzle result not updated ~1 day and ~1.5 hour MIME types puzzle

#14

I’m sure I’m not the only one, but I’ll add myself to the chorus of voices:

I’d have completed this in 1/3rd the time and avoided a lot of fruitless imaginary bug chasing if the problem statement had said that Chuck Norris uses a 7-bit binary representation.

#15

“The input message consists of ASCII characters (7-bit)”

All said

#16

The 3rd and 4th tests shows fails with the message:
Found: “…0”
Expected: "…0 "

Are tests correct? Why the final space?

#17

maybe ‘\n’ ?? have you checked? Or maybe you put too much ‘\n’

#18

 nothing nothing

#19

You know that moderator and administrators can see all of your edits, right?

#20

I have the same issue. Tried manually correcting to see if that worked and it kept adding 0 and spaces. Did you ever fix yours?