The "Array Sum" code problem asks the programmer to return the sum of the elements in an array of integers. An example input would be [1, 2, 3, 4], and the corresponding output would be 10.
This problem deals with determining if a given value is present in a sorted array. An example input is given as [1, 3, 5, 7], 5, with the expected output being true.
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.
Given a list of positive integers, this algorithm finds the two integers that have the largest product.
Given a stack of integers, the function returns the sum of the elements in the stack.
This problem asks you to write a function that returns all possible permutations of a given string. For example, given the input string "abc", the function should return the following six permutations : "abc", "acb", "bac", "bca", "cab", and "cba".
This problem asks the programmer to return the sum of all integers at even indices in a given list. For example, given the list [1, 2, 3, 4, 5], the output would be 6 (2 + 4).
Given an array of integers, this code problem finds the sum of all elements in the array. The input is an array of numbers and the output is the sum of all the numbers in the array.