Find twelve 32-bit numbers such that each pair of them differs by bits in at least 17 positions. I'm struggling to find and optimal algorithm for thi ...
Find twelve 32-bit numbers such that each pair of them differs by bits in at least 17 positions. I'm struggling to find and optimal algorithm for thi ...
Problem: Given a positive integer n, in a single operation, choose any i >= 0 and convert n to n + 2^i or n - 2^i. Find the minimum number of opera ...
I'm trying to multiply two numbers together. One is 3'b111 and the other is 2'b11 (using Verilog syntax). If we assume those are unsigned, the result ...
So I have written a code for printing first 20 Binary Numbers like 0 1 10 11 100 101 and so on... I Tried running the code in Atom Editor it's not ac ...
Just for fun, I am trying to compress a programming problem into one line. I know this is typically a bad practice, but it is a fun challenge that I a ...
i am trying to convert a hex string to bin using binascii.a2b_hex but i get binascii.Error: Odd-length string only with some strings, not everytime. ...
I want to use a FileReader to POST an Excel file to my interface. It all works (as in there are no errors), except that the data sent seems to be mang ...
Given bytes as HEX: 710e00fe I do the following: And I get mantissa = 3697 and exponent = -2. I tried doing this manually but I can't figure out h ...
the context behind my issue is not important, as my question itself is fairly self-contained. Im currently trying to assign numbers to sequences of b ...
I'm working with a protocol where I don't have control of the input types. But I need to compute the difference in two, 64-bit unsigned integers (curr ...
If the rownames of the binary matrix match before the 4th . delimiter, merge the two rows, where if either row as 1, the column value will be 1. Also, ...
I am having an issue with extracting the proper height and width of a png file. The width prints properly, but the height does not. I am currently inp ...
I have input COM ports. I receive data from these like binary. Problem is i can't convert binary to object. I try this. It throw exception this li ...
I am implementing a MidiReader And it need me to read weather MSB First or LSB First UInts(8, 16, 32 or 64). I know little about binary and types so I ...
I am trying to create a binary column in python based if a given data in the GameDate column is between a set of dates. Here is what I tried: Thro ...
I've found such numbers time and time again in verilog and digital logic exercises, but I don't know how I'm supposed to know what number this is or h ...
I have an Azure Logic App that uses a Analyze Document for Prebuilt or Custom models (v3.0 API) action. The Custom Model is good, I can hit it with Po ...
When implementing a binary flag column in Python polars (v0.15.15), I came across some seemingly weird behavior. Given a df import polars as pl df = ...
I have two binary strings (not integer) for example 0101 and 0010, I need to XOR these two binary strings and then XOR the each bit of the result agai ...
I am using bitstring to perform an xor operation on the ith bit of a string: However the result will be a string, so I cannot continue with other i ...