We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
2's complement
2's complement
Sort by
recency
|
39 Discussions
|
Please Login in order to post a comment
Here is 2"s complement problem solution in Python Java C++ and c programming- https://programs.programmingoneonone.com/2021/07/hackerrank-2s-complement-problem-solution.html
Python3 solution
https://www.youtube.com/watch?v=4qH4unVtJkE If someone is interested
Can't figure out why it is not working
long twosCompliment(long a, long b) { /* * Write your code here. */ scanf("%ld %ld",&a,&b); return(0); }
Just by doing this i get segmentation fault..any idea to fix this.. i experienced the same with many other t