Try out this problem
Try Out this cody questions...
How can we do for last test case.
Can any one help me out?
how to solve below test case
%%
code = fileread('flip_vector.m');
assert(isempty(strfind(code, 'fliplr')));
Nice tricky problem
y=x(end:-1:1) I think this might help
You cannot pass the last test suite if you use the function fliplr
flipud(x')'
... didn't say anything about allowing flipud!
awesome
?
y=flip(x);
for i = 1:length(y)
z(i) = y((length(y)-i+1));
end;
Fail
code = fileread('flip_vector.m');
assert(isempty(strfind(code, 'fliplr')));
Assertion failed.
Can anyone suggest what is 'flip_vector.m' here?
That looks like cheating without even an ironic comment saying it is a cheat...
Given an unsigned integer x, find the largest y by rearranging the bits in x
781 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Back to basics 12 - Input Arguments
525 Solvers
Basics: 'Find the eigenvalues of given matrix
323 Solvers
Number of digits in an integer
336 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!