Problem 44375. Missing five
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
James
on 16 Oct 2017
Too bad this problem number has a '5' in it! :-)
mahesh kumar
on 5 Dec 2020
Ha Ha! six is the new 5!
西 齐
on 29 Jun 2021
function y = dec2missing5(x)
vec=[];
for i=1:15000
ele=num2str(i);
for j=1:length(ele)
if ele(j)=='5'
ele='';
break;
end
end
vec=[vec str2num(ele)];
end
y=vec(x);
end
why my solution is wrong???
Dyuman Joshi
on 29 Jun 2021
You should return the last element of the vector
Tran Tran
on 29 Jul 2022
Need some trick for this problerm
Tran Tran
on 29 Jul 2022
Men you got so many test cases.First time I see a problerm w many test like this
Solution Comments
Show commentsProblem Recent Solvers344
Suggested Problems
-
Find the sum of all the numbers of the input vector
43191 Solvers
-
1056 Solvers
-
692 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
466 Solvers
-
340 Solvers
More from this Author38
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!