## Shortest Bridge

Given a two-dimensional list of integers matrix containing 0s and 1s, 0 represents water and 1 represents land.

Given a two-dimensional list of integers matrix containing 0s and 1s, 0 represents water and 1 represents land.

Implement a frequency stack with the following methods:

You are given lists of integers people, jobs, profits. Each person i in people have people[i] amount of strength, and performing job j requires jobs[j] amoun...

Given a list of integers nums and an integer target, return the number of triples i < j < k that exist such that nums[i] + nums[j] + nums[k] < target.

Alice and Bob are playing a game with a sorted list of positive integers nums. In a single turn, Alice selects any three integers. Bob deletes one of them, a...

You are given a list of integers nums and integer k. Return the maximum sum of elements that you can remove given that you must pop exactly k times, where ea...

Given an integer n, return the number of strings of length n that can be formed under the following rules:

You are given a list of integers nums containing 1s and 0s and an integer k. Given that you can set at most k 0s to 1s, return the length of the longest subl...

In the game 2048, you are given a 4 by 4 board of numbers (some of them empty, represented in our case with 0) which you can swipe in any of the 4 directions...

Given an unsorted array of integers nums, find the length of the longest sequence of consecutive elements.

You are given a list of non-negative integers prices representing the daily stock prices of a company in chronological order. Return a list of the same lengt...

You are given a list of integers nums. Return the length of the longest sublist such that its length is at least 3 and its values are strictly increasing and...