Given a vector of integers and a real number find the closest integer.
EX:
>> a = [2 4 5 6 8 10];
>> b = 4.6;
>> nearestNumber(a,b)
ans=5
I think you have to improve the test suite
Replace NaNs with the number that appears to its left in the row.
1710 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
524 Solvers
Make one big string out of two smaller strings
1070 Solvers
125 Solvers
261 Solvers