---
title: "#compare-to articles | Hashnode"
description: "Explore 2 articles tagged #compare-to on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/compare-to"
---

Tag

# #compare-to

2 posts · 0 followers

[chanbasha](https://hashnode.com/@javaeduacademy) · [Dec 31, 2025](https://hashnode.com/posts/comparable-part-2/695514d7d0fddfb882e2429b)

### [Comparable Part-2](https://javaeduacademy.hashnode.dev/comparable-part-2?utm_source=hashnode&utm_medium=feed)

Earlier, we learned how to sort the Car class by mileAge.In this article, we will focus on sorting cars by their color, helping us understand how Comparable works with String values. If you haven’t read it yet, you can check it out here:👉 Sorting C...

3 min read · [javaeduacademy.hashnode.dev](https://javaeduacademy.hashnode.dev/comparable-part-2?utm_source=hashnode&utm_medium=feed)

[Vineeth Chivukula](https://hashnode.com/@vineethchivukula) · [Jul 3, 2024](https://hashnode.com/posts/solving-merge-intervals/66854470bce3f5ec1df6f768)

### [Solving Merge Intervals](https://vineethchivukula.hashnode.dev/solving-merge-intervals?utm_source=hashnode&utm_medium=feed)

To see the question, click here. Naive Approach The idea is to use the concept of Merge Intervals and sort the intervals based on the start time. If the current interval overlaps the previous one, update the end time. If there is no overlap, add the ...

5 min read · [vineethchivukula.hashnode.dev](https://vineethchivukula.hashnode.dev/solving-merge-intervals?utm_source=hashnode&utm_medium=feed)
