MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / addBinary

Method addBinary

greedy_algorithms/binary_addition.cpp:40–67  ·  view source on GitHub ↗

* @brief Adds two binary strings and returns the result as a binary string. * @param a The first binary string. * @param b The second binary string. * @return The sum of the two binary strings as a binary string, or an empty * string if either input string contains non-binary characters. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testsFunction · 0.80

Calls 3

push_backMethod · 0.80
reverseFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected