Given an array of integers, this function will find the first missing positive integer and return it. The array can contain duplicates and negative numbers.
To find the sum of all elements in an array, simply iterate through the array and add each element to a total sum.
Given a string, the length of the longest substring without repeating characters is found.
Given an array of n integers, find the contiguous subarray of length k with the maximum sum.
Contiguous subarray of length k with maximum sum is found.
Given a string, the longest substring without repeating characters is found.
Given a list of strings, return the count of the number of strings where the string length is 2 or more and the first and last chars of the string are the same.