Given a list of US states, remove all the states that start with the letter N.
s1 = 'Alabama Montana Nebraska Vermont Nevada';
s2 = 'Alabama Montana Vermont ';
There's an error in the third test case that's preventing it from ever passing
Sorry about the problem. It's fixed now and you're in the lead.
If I dont know any US city name, then I cant solve. Atleast it should not have space. Eg NewJersy not New Jersey. This is not matlab related. Its US related.
I do not linke this problem as you must realize that there are two-names states which start with "New" or with "North". This needs to be analyzed before for people who don't know the names of all states, like me (I'm Spanish). I agree with Vivek that these doble name states should appear without space, but knowing that the only strages are "New" and "North", the problem is not that difficult.
Could you explain how to put the spaces.For example,why the s2 of the second case has seven spaces?
Problem description says "remove" when it actually means "replace with space character". This might trip some people up because the verification is very unforgiving in this sense.
No matter what I do the assertion fails. I have tried three different solutions and for all I get the same result even though I get the correct answer in my computer. Can someone help!!! thanks!
this uses very simple expression
How to find the position of an element in a vector without using the find function
Construct a string from letters and counts
7 segment LED display
Set the array elements whose value is 13 to 0
Return area of square
Find the longest sequence of 1's in a binary sequence.
Prime factor digits
Who Has the Most Change?
Remove all the words that end with "ain"
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