Tagged Questions
8
votes
2answers
462 views
Bitwise Operators in Brainfuck
Your task is to create one brainfuck program for each of the following binary operators. Each program should take one or two 8-bit numbers (A and B) from input and calculate the specified operation:
...
3
votes
6answers
408 views
Generating Binary shapes
How could we generate shapes or images using binary?
I got to messing around trying to create something that looked matrix like and got to thinking, wouldn't a great CodeGolf be to see who can make ...
9
votes
9answers
674 views
Calculate hamming weight with low hamming weight
Create a program that computes the hamming weight of a string. Winner is the program with the lowest hamming weight.
Rules:
Hamming weight for an ASCII character is defined as the total number of ...
5
votes
4answers
413 views
Convert from binary to negabinary
Given a binary integer inclusively between 0 and 1111111111111111 (i.e. a 16-bit unsigned integer) as input, output the same integer in negabinary.
The input can be in whatever format is most ...
8
votes
32answers
2k views
Print the amount of ones in a binary number without using bitwise operators
Description
Given a number, print the amount of 1s it has in binary representation.
Input
A number >= 0 in base 10 that won't exceed the highest number your language is able to handle.
Output
...
8
votes
6answers
592 views
Manchester encode a data stream
Manchester coding is a telecom protocol used in radio communications that guarantees bit transitions at a regular interval so a receiver can recover the clock rate from the data itself. It doubles the ...
6
votes
1answer
238 views
Floating point addition, without floats!
Your task is to write a program, in any language, that adds two floating point numbers together WITHOUT using any fractional or floating point maths. Integer maths is allowed.
Format
The format for ...