Brian Moore - MATLAB Cody - MATLAB Central

Brian Moore

8480
Rank
4
Badges
700
Score
1 – 50 of 325

Brian Moore submitted a Comment to Solution 578511

For the record, I don't recommend reading this, but here goes: My solution is function ans = add_two_numbers(varargin) system 'echo "function ans = assert(~), true;" > ./assert.m'; It works by redefining the assert() function that the test suite uses to always return true. This strategy can be used to solve any problem. Many of the leading solutions to problems are hacks like this. It's actually quite fascinating to think of ways to "cheat" the system

on 26 Jul 2016

Brian Moore received Promoter badge for Solution 180137

on 30 Mar 2015

Brian Moore liked Solution 180137

on 30 Mar 2015

Brian Moore received Commenter badge for Solution 180137

on 30 Mar 2015

Brian Moore submitted a Comment to Solution 180137

Brilliant use of complex numbers to force sort(x) to operate on abs(x)

on 30 Mar 2015

1 – 50 of 325
Go to top of page