Algorithmic problem preparation
💪 Prepare for technical interviews by solving practical problems 🚀
Find if the array contains any duplicates. The function should return true if any value appears at least twice, and false if every element is distinct.
Determine if string t is an anagram of string s. An anagram is a word formed by rearranging the letters of another word.
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
Given an array of strings strs, group all anagrams together in sub-lists. An anagram is a string that contains the same characters as another string, but in a different order.
Given an integer array nums and an integer k, return the k most frequent elements. The order of elements in the answer does not matter.
Given an array nums, return an array output where output[i] is equal to the product of all elements of nums except nums[i].
Find the length of the longest consecutive sequence of numbers in the array. A consecutive sequence is a sequence where each element is 1 greater than the previous.
Determine if a string is a palindrome, considering only alphanumeric characters and ignoring case.
Find all unique triplets in the array that sum to zero. The function should return an array of triplets where each triplet contains three distinct elements that sum to zero.