The leetcode problem Sum of Two Integers
reads
Given two integers a and b, return the sum of the two integers without using the operators + and -.
However, I did use the +
operator and my solution was just a + b
.
My submission was slower than 10% of submissions and used more memory than 21% of other submissions - is this just other people doing the same thing and getting more lucky on the benchmarks or am I missing something?
Thanks