Given a natural number reorder its binary form to create another number, closest to the given one.
one perhpas "unfair" issue with this scoring system is that it penalizes strings by their length (e.g. unique(...,'sorted') costs more points than unique(...,'rows')) which encourages attempting to avoid strings all together...
That's good point. Thanks for your involvement Alfonso. I will disable this feature. I thought it's right approach to count strings like that but your argument shows there are many exceptions, so... not a good idea.
but I liked your fix for the ans trick, I wish that was part of the standard cody scoring!
Back to basics 6 - Column Vector
middleAsColumn: Return all but first and last element as a column vector
Multiply a column by a row
Volume of a Parallelepiped
Rotate input square matrix 90 degrees CCW without rot90
Calculate the Damerau-Levenshtein distance between two strings.
How many solutions has this problem?
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