Find if a given sentence is a palindrome
Given a string/character array, return true if the string is a palindrome else returns false.
For example:
sample_text =...
1 day ago
Solved
Get chain of consecutive characters
Write a function that will output a chain of consecutive characters, given 2 letters as input. It has to work backwards too. Exa...
1 day ago
Solved
Cannibal eating odd and even numbered men
There are N men in a queue. A cannibal eats either all odd-numbered or all even-numbered men in the queue at a time. In the fi...
1 day ago
Solved
Minimum Maximum Sort Array
sort one array by put minimum value followed by maximum as follow
a=[2 3 1 5]
and the solution is
y=[1 5 2 3 3 2 5 1];
Plot Line Specifications
Create a line plot for function cos(x) where x is a vector of linearly spaced values going from 0 to input N with an increment o...
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.