Given an array, this algorithm will find any duplicates within it and output them in a new array.
An anagram is a word or phrase that is formed by rearranging the letters of another word or phrase. Given an array of strings, this problem asks you to group together all of the anagrams in the array.
This problem asks you to return the first non-repeating character in a given string. If there is no such character, you should return '-1'.
Given a string, the longest substring without repeating characters is found. The length of the substring is then returned.
Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i.
Given an array of n integers, the problem is to find the contiguous subarray of length k that has the maximum sum.
This problem asks the programmer to write a function that takes in an array of integers and returns the sum of the even numbers in the array. An example input and output are given.
Given an array of n integers, find the contiguous subarray of given length k that has the maximum average value. Output the maximum average value.