Data Types

Find the Largest Integer in an Array
AskAI

This technical problem deals with finding the largest integer in an array. An example input is given as [1, 2, 3, 4, 5], and the expected output is 5.

"Reverse a string in JavaScript"
AskAI

This technical problem deals with reversing a string in JavaScript. Given a string of length n, the function should return the string reversed. For example, given the input string "abcdef", the output should be "fedcba".

Sum of odd integers in an array
AskAI

The function should take an array of integers as input and return the sum of the odd integers in the array.

Sum of Array Elements
AskAI

This problem asks the programmer to write a function that, when given an array of integers, calculates the sum of all the elements in the array. The input is an array of four integers, and the output is the integer 10.

Monotonic Array
AskAI

The given array is monotonic if it is either monotone increasing or monotone decreasing. An array A is monotone increasing if for all i <= j, A[ i] <= A[j]. An array A is monotone decreasing if for all i <= j, A[i] >= A[j].