Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
10 votes
32 answers
2k views

Do two numbers contain unique powers of 2

Break two numbers up into their powers of 2, if they share any, return a falsey value. Otherwise, return a truthy value. If one input is 0, the answer will always ...
ATaco's user avatar
  • 11.6k
17 votes
5 answers
789 views

Unwise bit operations

I like to golf in dc, but I'm sometimes frustrated because dc doesn't have bitwise operations. Challenge Provide four named ...
Digital Trauma's user avatar
12 votes
6 answers
4k views

Implement an 8 bit adder

The Challenge Implement a function which accepts two integers whose values range from 0 - 255 and returns the sum of those integers mod 256. You may only use bitwise negation (~), bitwise or (|), bit ...
Orby's user avatar
  • 874