CRCharan Rinblog.charanravi.com·Apr 8, 2025 · 1 min readValid AnagramProblem Given two strings s and t, return true if t is an anagram of s, and false otherwise. Click Here to read the entire problem. Approach What he heck is an anagram? cat and tac are words that have been rearranged using the same alphabets. Now tha...00
CRCharan Rinblog.charanravi.com·Apr 8, 2025 · 1 min readContains DuplicateProblem Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct. Click Here to read the entire problem. Approach Don’t get overwhelmed thinking about a number of data st...00
CRCharan Rinblog.charanravi.com·Apr 7, 2025 · 2 min readTop K Frequent ElementsProblem Let’s take a look at the question, Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Click Here to go through the question in detail Approach From the question, it is cl...00
CRCharan Rinblog.charanravi.com·Apr 6, 2025 · 2 min readContains DuplicateProblem Lets look at the question at hand Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct. Click Here to look at the question in detail. Approach From the questi...00