Immutable Class, Sorting, and Duplicates
Filed under CGI
The question
Create a custom immutable class containing a mutable object (Date). Write programs to sort employees by salary then name, store employees in a map without duplicates, find the first duplicate character in a string, and find the longest palindrome in a string.
No write-up yet. Related questions below have one.
Related CGI questions
Collected from public candidate posts and coding forums. Updated Nov 2026.