Although it is fairly easy to guess what you mean, your problem statement is not descriptive enough. Specifically, it is not clear whether the input is a single vector with both the rise and run, or if there should be two inputs. And what should the ordering be?
I'm not able to guess what "horizontal run" and "vertical rise" is. Where does the "next" belong to, to "vertical rise" or to "as a vector"?
a poor description for an uninspiring problem
Please provide more information on this problem. Can't understand. Sorry.
could you give little more explanation about the problem
I agree whith everybody
Test suite contains the solution. Poor.
I have noticed that problem statements from AMITAVA BISWAS are so vague, stupid, meaningless, and unclear. I don't know why he creates problems if he doesn't want to invest some time to come up with something meaningful and clear.
This user (mohamed elbesealy) appears to have gamed the system, with fraudulent "likes" of this unremarkable solution submitted by 'sock-puppet' accounts. —DIV
in every other program language i have used, arrays are called with BRACKETS not parenthesis.
The answer is ?
Find the longest sequence of 1's in a binary sequence.
Compute a dot product of two vectors x and y
Rotate a Matrix by 90 degrees
Generate a vector like 1,2,2,3,3,3,4,4,4,4
chance in percent for minimum K heads when a good coin is tossed N times?
letter yes yes & letter no no
How many jokers?
A Simple Tide Gauge with MATLAB
Minimum possible M of the maximum side of a triangle of given area A.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office