Company: facebook
All the problems asked by "facebook".
-
LeetCode 125 - Valid Palindrome
Determine if a given string is a palindrome, considering only alphanumeric characters and ignoring cases.
-
Leetcode 271 - Encode and Decode Strings
Design an algorithm to encode a list of strings into a single string and decode it back to the list, working with any set of characters.
-
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 435 - Non-overlapping Intervals
Given an array of intervals, find the minimum number of intervals to remove to make the rest non-overlapping.
-
Leetcode 347 - Top K Frequent Elements
Given an integer array and an integer k, find the k most frequent elements in the array.
-
Leetcode 56 - Merge Intervals
Given an array of intervals, merge all overlapping intervals and return the non-overlapping intervals that cover the entire range.
-
Leetcode 15 - 3Sum
Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. The solution set must not contain duplicate triplets.