Binary, the base-2 numeral system, represents numbers using two symbols: 0 and 1. For compiled computer programs, use the "executable" tag instead.

**2**

votes

**1**answer

22 views

### Maximum Element in a Binary Tree (Error while trying root.getData())

I created a binary tree using templates. I entered integer values for all the nodes and I want to find the maximum element in the Binary Tree.Here is the implementation:public class BinaryTreeNode&...

**0**

votes

**1**answer

20 views

### Detect archive type

I have an archive without extension, how i can detect the file format?Begin of file (screenshot):Begin of file (text):ef cd ab 19 14 00 05 00 08 00 1b 8c 2f 34 63 e3f1 35 68 00 00 00 8c 00 00 ...

**0**

votes

**1**answer

15 views

### How do you convert binary value strings into ASCII values in Python 3? [duplicate]

I am trying to convert binary value strings into ASCII values on Python 3. Let's say the letter 'l' in ASCII has a binary value of 01101100. If the '01101100' is represented as a string, how would you ...

**0**

votes

**2**answers

36 views

### How do I merge two versions of a non-text file with git?

I'm working on a project where various test parameters are stored in LibreOffice .ods spreadsheet files. Problem: if two developers make changes to an .ods file on their branches then when we try to ...

**0**

votes

**0**answers

8 views

### Modulo algorithm on bit array and 2's complement

Given the bit arrays A and B, I need to return the bit array C where A, B and C represents 2's complement integers and C=(A mod B).As long as both A and B are positive, I can just use:while(...

**0**

votes

**1**answer

32 views

### PHP Convert large binary code to string

I need to convert a large collection of binary to a string. The code I used to get the binary code is:$buffer=file_get_contents('test.php');$length=filesize('test.php');if (!$buffer || !$...

**2**

votes

**2**answers

27 views

### Binary String to Array to HEX Color

Trying to import some color pallets from a program which stores them in binary format. I need them to be split and converted to hex. I didn't think it would be too difficult after seeing this tool: ...

**0**

votes

**0**answers

18 views

### Displaying the binary contents of the word from sqlserver in a freettextbox [on hold]

i am developing a web application in which i am trying to retrieve the binary contents of a word file to a freetextbox. It shows the value like "System.IO.Byte"I have tried something like this,Dim ...

**3**

votes

**1**answer

40 views

### Changing the values of array by the distance of the indexes (c)

I'm having hard time with this one:I need to write a function in C that recieving a binary array and his size, and the function should calculate and replace the current values with the distance (by ...

**0**

votes

**0**answers

56 views

### What iOS pod uses SCRCException in PrivateFrameworks/ScreenReaderCore.framework ?

We found your app was not in compliance with 2.5.1.Specifically, it would be appropriate to remove all uses/references to non-public APIs, such as “SCRCException, ScreenReaderCore.framework”, before ...

**0**

votes

**1**answer

33 views

### Python Binary Multiplication. Divide and Conquer

I need to understand why my code gives wrong answers. The task is to create binary multiplication by divide and conquer method. I found some papers that describe this type of problem: wikibooks ...

**0**

votes

**0**answers

14 views

### Problems with Binary output [duplicate]

I convert character into binary using Integer.toBinaryString().Full binary represents with 8 digits: ex. 01100111But my Eclipse ignores, if binary starts with zeros and give me output with 6 ...

**-2**

votes

**0**answers

7 views

### Binary analysis pros

I'll go straight to the point: having both source code and binary code (obviously compiled already) I was wandering why a binary analysis might allow a better understanding about how the application ...

**-1**

votes

**1**answer

195 views

### Calculating the numbers whose binary representation has exactly required number 1's

Okay so the problem is finding a positive integer n such that there are exactly m numbers in n+1 to 2n (both inclusive) whose binary representation has exactly k 1s. Constraints: m<=10^18 and k<...

**17**

votes

**6**answers

2k views

### Compute the cumulative sum of a list until a zero appears

I have a (long) list in which zeros and ones appear at random:list_a=[1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1]I want to get the list_bsum of the list up to where 0 appearswhere 0 appears, retain 0 ...