Problem 2631. Flip the vector from right to left
解决方案Stats
Problem Comments
-
8 Comments
Try out this problem
Try Out this cody questions...
How can we do for last test case.
谁能帮我吗?
how to solve below test case
%%
code = fileread('flip_vector.m');
assert(isempty(strfind(code, 'fliplr')));
Nice tricky problem
y = x(结束:-1:1)我认为这可能会有所帮助
如果您使用函数Fliplr,则不能通过最后的测试套件
flipud(x')'
... didn't say anything about allowing flipud!
很简单
解决方案Comments
-
1 Comment
Fairly straightforward even if you don't use flip or flip variants
-
1 Comment
高于平均水平
-
1 Comment
medium-low difficulty
-
1 Comment
easy
-
1 Comment
这对我来说是直观的。
-
2 Comments
棘手
好问题
-
1 Comment
A good problem!
-
1 Comment
好问题
-
1 Comment
awesome
-
1 Comment
?
-
2 Comments
y=flip(x);
对于i = 1:长度(y)
z(i) = y((length(y)-i+1));
end;
-
1 Comment
Fail
code = fileread('flip_vector.m');
assert(isempty(strfind(code, 'fliplr')));
Assertion failed.
谁能在这里建议什么是“ flip_vector.m”?
-
1 Comment
That looks like cheating without even an ironic comment saying it is a cheat...
Problem Recent Solvers5126
建议的问题
818 Solvers
610 Solvers
433 Solvers
Test Problem; Create a 5x5 array containing all ones
330 Solvers
5532 Solvers
来自作者的更多70
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
开始狩猎!