Problem 2329. Finding the next number in a number list, are you able to crack it!
So it goes like this, I give a number list and you find the next value!
I found a way to do it, just wondering how many others can to!
This could be a fun test of skill! Please try and see if you can get it!
Example:
x = [ ... 11; 4; 16; 3; 3; 15; 6; 17; 10; 18; 7; 13; 15; 5; 24; 5; 3; 3]; NextValue = 3;
%% Next value after x(1), so your finding the ? in sequence x = [?; 11; 4; 16; 3; ... 3];
Good luck, just saying, it is tricky! Many have solved this, but the key is to find the pattern...
Solution Stats
Problem Comments
-
2 Comments
any hint?
@Asif here's a hint: cheat. Only one person other than the problem author submitted a non-cheating solution, and even that was only after cheating, and presumably seeing the author's intended solution.
Solution Comments
Show commentsProblem Recent Solvers16
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15551 Solvers
-
Reverse the Words (not letters) of a String
442 Solvers
-
Back to basics 4 - Search Path
367 Solvers
-
Arrange vector in ascending order
779 Solvers
-
Basics: Divide integers to get integer outputs in all cases
133 Solvers
More from this Author17
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!