Given an array of integers between 1 and n, inclusive, where n is the length of the array, write a function that returns the first
Write a function that takes in an array of integers and returns the length of the longest peak in the array. A peak is defined
Write a function that takes in an n x m two-dimensional array (that can be square-shaped when n == m) and returns a one-dimensional array
Write a function that takes in an array of integers and returns a boolean representing whether the array is monotonic. An array is said to
Write a function that takes in two non-empty arrays of integers, finds the pair of numbers (one from each array) whose absolute difference is closest
Write a function that takes in a non-empty array of distinct integers and an integer representing a target sum. The function should find all triplets
You’re given an array of integers and an integer. Write a function that moves all instances of that integer in the array to the end
Given two non-empty arrays of integers, write a function that determines whether the second array is a subsequence of the first one. A subsequence of
Write a function that takes in a non-empty array of distinct integers and an integer representing a target sum. If any two numbers in the