I like your test suite. Using large X forces a better solution.
Thank you Jonathan. I have discovered this philosophy thanks to James and @bmtran problems.
is there any mathematical algorithm that i dont know about to calculate such big range(10^13)?
i minimized my code as best as i can.still fails for such large number.
Find the sum of all the numbers of the input vector
31956 Solvers
All your base are belong to us
463 Solvers
284 Solvers
Set the array elements whose value is 13 to 0
938 Solvers
Change the sign of even index entries of the reversed vector
296 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!