We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- BigNumber
- Java BigDecimal
- Discussions
Java BigDecimal
Java BigDecimal
Sort by
recency
|
517 Discussions
|
Please Login in order to post a comment
This is a really interesting challenge! It’s a great way to test understanding of both BigDecimal operations and stable sorting in Java. playexchange
This is a really interesting challenge that shows the true power of Java’s BigDecimal class. ekbet 60 login
import java.math.BigDecimal; import java.util.*; class Solution{
for (int i=n; i>=0; i--) { for (int j=0; j
}
Arrays.sort(s, 0, n, (String a,String b) ->{return new BigDecimal(b).compareTo(new BigDecimal(a));});