Problem 2357. Sort the vector with the given index
Given x = [1 2 4 8 17] and
t = [1 3 2 5 4]
then y = [1 4 2 17 8].
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Tahmina Tabassum Treena
on 24 Jan 2021
Test case seems wrong.
mahesh kumar
on 4 Feb 2021
test case 1
goc3
on 4 Feb 2021
...is fine.
Solution Comments
Show commentsProblem Recent Solvers122
Suggested Problems
-
Return the largest number that is adjacent to a zero
5407 Solvers
-
508 Solvers
-
Number of 1s in a binary string
9607 Solvers
-
Vectorize the digits of an Integer
325 Solvers
-
652 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!