0 Negate a number using addition operator Problem: Given a number X, flip it to -X. Time complexity : O ( X ) Logic : The negation can be implemented by adding -1, X times. Solution : javascript 50 numbers 4 negate 1 Please enable JavaScript to view the comments powered by Disqus.