1248. Count Number of Nice Subarrays
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. […]
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.
You are given a string str containing two fractions a/b and c/d, compare them and return the greater. If they are equal,
In the universe Earth C-137, Rick discovered a special form of magnetic force between two balls if they are put
Given three non-collinear points whose co-ordinates are p(p1, p2), q(q1, q2) and r(r1, r2) in the X-Y plane. Return the number of integral / lattice
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 are given a perimeter & the area. Your task is to return the maximum volume that can be made in the form of a cuboid from the
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 circular sheet of radius, r. Find the total number of rectangles with integral length and width that can be
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 the coordinates of the endpoints(p1,q1, and p2,q2) of the two line segments. Check if they intersect or not. If
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