Given an array of integers, this problem asks you to find the length of the longest increasing subsequence in the array. For example, given the array [10,9,2,5 ,3,7,101,18], the longest increasing subsequence is [2,3,7,101], so the answer would be 4.

209

Mar 12
Given an array of integers, the maximum sum of any contiguous subarray of the array can be found by summing the subarray. In the example given, the maximum sum is 137, obtained by summing the subarray [42, 14, -5, 86].

208

Mar 12
Given an array of integers, this function will return the sum of the elements in the array.

205

Mar 12
This problem asks whether a given string is a permutation of a palindrome. A palindrome is a word or phrase that is the same forwards and backwards, while a permutation is a rearrangement of letters. The problem can be solved by checking whether the string has an even number of each letter (excluding letters with an even number of occurrences) and at most one letter with an odd number of occurrences.

191

Mar 12
To find the sum of the elements in an array of integers, simply add all the numbers together. In the example given, the sum would be 1 + 2 + 3 + 4, or 10.

197

Mar 11
This problem asks whether one string (t) is an anagram of another string (s). An anagram is a word, phrase, or name formed by rearranging the letters of another , such as cinema, formed from iceman.

223

Mar 11
Given an array of n integers, this problem seeks to find the maximum sum of any contiguous subarray within the array. For example, given the array [2, -1, 3, 4, -5], the maximum sum would be 7, since the contiguous subarray [3, 4] has the largest sum.

211

Mar 11