You are viewing a single comment's thread. Return to all comments →
s = Arrays.copyOf(s, n); Arrays.sort(s, (a, b) -> new BigDecimal(b).compareTo(new BigDecimal(a)));
Excellent! Nice way of thinking.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Java BigDecimal
You are viewing a single comment's thread. Return to all comments →
Excellent! Nice way of thinking.