3095. Shortest Subarray With OR at Least K I
Problem You are given an array nums of non-negative integers and an integer k. An array is called special if the bitwise OR o...
Problem You are given an array nums of non-negative integers and an integer k. An array is called special if the bitwise OR o...
Problem You are given a 0-indexed integer array nums, and an integer k. In one operation, you can remove one occurrence of th...
Problem You are given three positive integers num1, num2, and num3. The key of num1, num2, and num3 is defined as a four-digi...
Problem You are given an array of strings words and a string pref. Return the number of strings in words that contain pref as...
Problem You are given a 0-indexed string array words. Let’s define a boolean function isPrefixAndSuffix that takes two string...
Problem You are given a string num representing a large integer. An integer is good if it meets the following conditions: It...
Problem Given an array of string words, return all strings in words that is a substring of another word. You can return the a...
Problem You are given a 0-indexed string s typed by a user. Changing a key is defined as using a key different from the last ...
Problem Given an integer array nums, find three numbers whose product is maximum and return the maximum product. https://leet...
Problem Given an unsorted array of integers nums, return the length of the longest continuous increasing subsequence (i.e. su...
Problem Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a == c an...
Problem Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element ...
Problem Given an integer n, return a string with n characters such that each character in such string occurs an odd number of...
Problem Given an binary array nums and an integer k, return true if all 1’s are at least k places away from each other, other...
Problem You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and ...
Problem Given a string columnTitle that represents the column title as appears in an Excel sheet, return its corresponding co...
Problem Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet. For example: A...
Problem Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings...
Problem You are given a string date representing a Gregorian calendar date in the yyyy-mm-dd format. date can be written in i...
Problem You are given an integer array nums of even length. You have to split the array into two parts nums1 and nums2 such t...
Problem Given a string s, find any substring of length 2 which is also present in the reverse of s. A substring is a contigu...
Problem Given the root of a binary tree, return the postorder traversal of its nodes’ values. https://leetcode.com/problems/b...
Problem There are n mountains in a row, and each mountain has a height. You are given an integer array height where height[i]...
Problem The next greater element of some element x in an array is the first greater element that is to the right of x in the ...
Problem You are given an integer array prices where prices[i] is the price of the iᵗʰ item in a shop. There is a special disc...
Problem You are given an integer array nums, an integer k, and an integer multiplier. You need to perform k operations on num...
Problem You are given an integer array gifts denoting the number of gifts in various piles. Every second, you do the followin...
Problem You are given a 0-indexed permutation of n integers nums. A permutation is called semi-ordered if the first number eq...
Problem An array is considered special if every pair of its adjacent elements contains two numbers with different parity. You...
Problem You are given coordinates, a string that represents the coordinates of a square of the chessboard. Below is a chessbo...
Problem You are given an 8 x 8 matrix representing a chessboard. There is exactly one white rook represented by 'R', some num...
Problem You are given two strings, coordinate1 and coordinate2, representing the coordinates of a square on an 8 x 8 chessboa...