I think the third test case is wrong. Anyone else has problem??
Whoops. The answer needs to be a number, not a string.
great! well done
Admittedly, I know very little about Java but I'm suprised this work since I can't find a constructor that takes a double. Only strings, byte patterns or random number generators. Care to explain?
There are a constructors for int and double: http://docs.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html#BigDecimal(int)
Oh yes, I missed that you were using BigDecimal instead of BigInteger.
i have a 25 sized solution but it doesnt accept since i used symbolic toolbox :)
Test for balanced parentheses
7 segment LED display
Back to basics 21 - Matrix replicating
Generate a NaN...on purpose
Area of an equilateral triangle
Sum of digit range
Fill an array given a sum and array length values
Best Square-Shaped Grid for Subplot
Sum of Dividend Digits
Flip the right coin to survive!
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