Find 2’s Complement
Came across this last week while talking to a student about how to find the 2’s complement of a number. It’s a method that takes a binary string and returns the 2’s complement. And bonus; they’ve got versions for Java, C++, C# and Java
Want to stay in touch and keep up to date with the latest posts @ CompSci.rocks?