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.
- Prepare
- Algorithms
- Warmup
- Plus Minus
- Discussions
Plus Minus
Plus Minus
Sort by
recency
|
3162 Discussions
|
Please Login in order to post a comment
Here is mine. It has also null check.
public static void plusMinus(List arr) { double positiveQuantity, negativeQuantity, zeroQuantity = 0;
Here is my c++ solution, you can watch the explanation here : https://youtu.be/OqevjJbsN2Q
Here is the solution in C:
Could be better. But here it is in golang: