You are given an array of distinct integers arr and an array of integer arrays pieces, where the int...
Given an array of integers nums, sort the array in increasing order based on the frequency of the va...
A newly designed keypad was tested, where a tester pressed a sequence of n keys, one at a time. You ...
Given a string s, return the length of the longest substring between two equal characters, excluding...
Given an integer array arr, return the mean of the remaining integers after removing the smallest 5%...
A string is a valid parentheses string (denoted VPS) if it meets one of the following: It is an empt...
You are given an array nums of non-negative integers. nums is considered special if there exists a n...
Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, m...
The Leetcode file system keeps a log each time some user performs a change folder operation. The ope...
You are given a string text of words that are placed among some number of spaces. Each word consists...