The problem is to find the length of the longest increasing subsequence in an array. For example, given the array [10, 22, 9, 33, 21, 50, 41, 60, 80], the longest increasing subsequence would be of length 6, and would be [10, 22, 33, 50, 60, 80].

167

Nov 25
This technical problem deals with finding the sum of all the elements in a list of integers. An example input would be [1, 2, 3, 4, 5], and the corresponding output would be 15.

148

Nov 25
To find the sum of the elements in a list of integers, simply iterate through the list and add each element to a total.

114

Nov 21
Given an array of integers, find the maximum sum of a contiguous subarray. For example, given the array [-2, 1, -3, 4, -1, 2, 1 , -5, 4], the maximum sum of a contiguous subarray is 6 (the sum of the subarray [4, -1, 2, 1]).

162

Nov 20
This problem asks you to return the sum of all the odd integers in an array. For example, if the input array is [1, 2, 3, 4, 5], the output should be 9.

95

Nov 19
Given a list of integers, the largest sum of non-adjacent numbers can be found by writing a function. The function will take the list as input and return the largest sum possible.

152

Nov 19
To find the sum of integers in an array, simply iterate through the array and add each integer to a total sum.

176

Nov 18
This problem asks the programmer to write a function that returns the largest sum that can be generated by adding together any two adjacent integers in a given list. An example input and output is given.

145

Nov 12