Arrays

Find the Maximum Subarray Sum
AskAI

Given an array of integers, find the maximum sum of any subarray of the array.

Sum of integers in an array
AskAI

The problem asks you to find the sum of the first n integers in an array.

Longest Substring Without Repeating Characters
AskAI

This problem is asking for the longest substring without repeating characters within a given string. For example, if the input string is "abcabcbb", the output should be 3, since " abc" is the longest substring without repeating characters.

Array Sum
AskAI

This problem asks the user to write a function that returns the sum of the elements in an array. An example input and output are given.

Two Sum: Given an array of integers, return the indices of the two numbers...
AskAI

The problem is to find the indices of two numbers in an array that add up to a specific target. There is guaranteed to be only one solution.

Longest Increasing Subsequence in an Array
AskAI

Given an array of integers, this problem looks for the longest subsequence in which the integers appear in increasing order. So, for the given array {3, 5, 2, 7}, the longest increasing subsequence would be {3, 5, 7}.

Find the maximum sum of a contiguous subarray in an array of integers.
AskAI

Given an array of n integers, the goal is to find the contiguous subarray whose sum is maximum. For example, given the array [-2, 1, -3, 4, - 1, 2, 1, -5, 4], the maximum sum would be [4, -1, 2, 1], for a sum of 6.

Maximum sum contiguous subarray of length k
AskAI

This problem asks you to find the contiguous subarray of length k that has the maximum sum. You are given an array of n integers, and your goal is to find the subarray that maximizes the sum.