Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
[Java] Slightly Different way to use Comparator

raphael_1st

Jul 30, 2024

If you want to flex in your Java interview, you can use the comparator like this as well,

Arrays.sort(intervals, Comparator.comparingInt(i->i.start));

0

0

Comments
Comments

On this page