19. Remove Nth Node From End of List
Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input: […]
Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input: […]
Given an array of integers nums and an integer limit, return the size of the longest non-empty subarray such that the absolute difference between any
Given an array of integers nums and an integer k. A continuous subarray is called nice if there are k odd numbers on it. Return the number of nice sub-arrays.
There is a bookstore owner that has a store open for n minutes. Every minute, some number of customers enter the store.
In the universe Earth C-137, Rick discovered a special form of magnetic force between two balls if they are put
You are given an integer array bloomDay, an integer m and an integer k. You want to make m bouquets. To make a bouquet, you need
You have n jobs and m workers. You are given three arrays: difficulty, profit, and worker where: difficulty[i] and profit[i] are the difficulty and the profit of the ith job, and worker[j] is the
Given a non-negative integer c, decide whether there’re two integers a and b such that a2 + b2 = c.Example 1: Input: c = 5 Output: true Explanation:
Given a sorted integer array nums and an integer n, add/patch elements to the array such that any number in the range [1, n] inclusive