A quick but comprehensive explanation of why there’s no SortedList in Java.
Search Results for: sorted
Find the Kth Smallest Element in Two Sorted Arrays in Java
A quick and practical guide to finding the k-th smallest element in two sorted arrays.
Efficiently Merge Sorted Java Sequences
Learn how we can efficiently merge sorted arrays using a min-heap
How to Merge Two Sorted Arrays in Java
Learn how to merge two sorted arrays in Java.
Checking If an Array Is Sorted in Java
Learn how to check if an array is sorted in Java.
Checking If a List Is Sorted in Java
Learn several algorithms for checking whether a list is sorted in Java.
BigDecimal equals() vs. compareTo()
Explore the differences between BigDecimal equals() and compareTo() methods.
SkipList Implementation in Java
A quick and practical guide to implementing SkipList in Java.
New Features in Java 21
Learn about the new features of Java 21, like record patterns and switch enhancements for cleaner code.
Merge Overlapping Intervals in a Java Collection
Learn how to take a Java collection of intervals and merge the overlapping ones.
Get List of Entity From Database in Hibernate
Explore a few techniques for retrieving lists of entities from a database using Hibernate
Calculate Percentiles in Java
Learn how to calculate statistical percentiles of a collection or an array in Java.
Finding the Majority Element of an Array in Java
Explore different approaches to finding the majority element within an array. Learn about their time and space complexities.
Get All Results at Once in a Spring Boot Paged Query Method
Revisit how to retrieve data in pagination using Spring Boot how to retrieve all results at once using pagination
Pagination With JDBC
Discuss and implement different strategies for pagination with JDBC.
PriorityQueue iterator() Method in Java
Explore Java’s PriorityQueue iterator() method’s functionality and its effective use in various scenarios.
Sorting One List Based on Another List in Java
Explore various approaches for sorting a list based on the order of elements in another list.
How to Get Last Record in Spring Data JPA
Explore different ways of getting the last record in Spring Data JPA.
How to Sort LinkedHashMap by Values in Java
Explore how to sort a LinkedHashMap by values in Java.
Time Complexity of Java Collections Sort in Java
Explore thе Collеctions.sort() timе complеxity using Java Microbеnchmark Harnеss (JMH).