Problem 43738. Negative without '-'
Simple: return a negative number without using the '-' sign.
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Nikolaos Nikolaou
on 7 Oct 2020
this is still true while the only diff is this is a badge problem now . Please fix
goc3
on 8 Oct 2020
The offending line—asserting lack of '0'—has been commented out.
Nikolaos Nikolaou
on 16 Oct 2020
Thanks goc :)
Solution Comments
Show commentsProblem Recent Solvers61
Suggested Problems
-
Back to basics 22 - Rotate a matrix
911 Solvers
-
1122 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1141 Solvers
-
Element by element multiplication of two vectors
378 Solvers
-
Subtract integers and add doubles
109 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!