Java BigDecimal

Sort by

recency

|

520 Discussions

|

  • + 0 comments

    Great challenge! Java’s BigDecimal really shines here — handling arbitrary precision, exact numeric comparison, descending order sorting, and still preserving the original string format is no small task. khelo24bit

  • + 0 comments

    I also like that numerically equal values must maintain their original input order—makes it a good test of stable sorting! gold365 com

  • + 0 comments
        Arrays.sort(s, 0, n, (a, b) -> new BigDecimal(b).compareTo(new BigDecimal(a)));
    
  • + 0 comments

    This is a really interesting challenge! It’s a great way to test understanding of both BigDecimal operations and stable sorting in Java. playexchange

  • + 0 comments

    This is a really interesting challenge that shows the true power of Java’s BigDecimal class. ekbet 60 login