Valid AnagramCheck if two strings are anagrams of each other using a hashmap. Returns true or false1 min read·blog.charanravi.comApr 8, 2025
Contains DuplicateAlgorithm to detect a duplicate element in an array1 min read·blog.charanravi.comApr 8, 2025
Top K Frequent ElementsLearn how to find the top K frequent elements in an array using a hashmap and list sorting approach2 min read·blog.charanravi.comApr 7, 2025
Contains DuplicateCheck if an integer array contains duplicates by comparing its length to a set of its elements2 min read·blog.charanravi.comApr 6, 2025