Company: adobe
All the problems asked by "adobe".
-
Leetcode 1567 - Maximum Length of Subarray With Positive Product
Given an array of integers, find the maximum length of a subarray where the product of all its elements is positive.
-
Leetcode 42 - Trapping Rain Water
Given an elevation map, compute how much water it can trap after raining.
-
LeetCode 125 - Valid Palindrome
Determine if a given string is a palindrome, considering only alphanumeric characters and ignoring cases.
-
Leetcode 167 - Two Sum II - Input Array Is Sorted
Given a sorted array, find two numbers such that they add up to a specific target number, and return their indices.
-
Leetcode 128 - Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence with an O(n) time complexity algorithm.
-
LeetCode 1431 - Kids With the Greatest Number of Candies
Determine if each child can have the greatest number of candies after giving them extra candies.
-
Leetcode 57 - Insert Interval
Insert a new interval into a sorted array of non-overlapping intervals, merging overlapping intervals if necessary.
-
Leetcode 322 - Coin Change
Given an array of coin denominations and a total amount, determine the minimum number of coins needed to make up that amount, or return -1 if it's not possible.
-
Leetcode 70 - Climbing Stairs
Determine the number of distinct ways to climb to the top of a staircase with 'n' steps, where each time you can climb 1 or 2 steps.
-
Leetcode 11 - Container With Most Water
Given an array of integers representing the height of vertical lines, find the maximum amount of water a container formed by these lines can store.
-
Leetcode 371 - Sum of Two Integers
Given two integers a and b, return the sum of the two integers without using the operators + and -.
-
Leetcode 152 - Maximum Product Subarray
Given an integer array nums, find a subarray that has the largest product, and return the product.
-
Leetcode 53 - Maximum Subarray
Given an integer array nums, find the subarray with the largest sum and return its sum.
-
Leetcode 567 - Permutation in String
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.