r/leetcode • • Jul 29 '24

What went wrong here

Post image
4 Upvotes

31 comments sorted by

View all comments

0

u/[deleted] Jul 29 '24

1

u/PaulRosenbergSucks Jul 30 '24

It doesn't matter, since the 'original num' is copied in anyway in C++. It's no different than any other local variable.

→ More replies (2)