983. Minimum Cost For Tickets
You have planned some train traveling one year in advance. The days of the year in which you will travel […]
You have planned some train traveling one year in advance. The days of the year in which you will travel […]
Given the integers zero, one, low, and high, we can construct a string by starting with an empty string, and then at each step
You are given a list of strings of the same length words and a string target. Your task is to form target using the given words under the
Given an integer array nums and an integer k, find three non-overlapping subarrays of length k with maximum sum and return them. Return the result
You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the
There exist two undirected trees with n and m nodes, numbered from 0 to n – 1 and from 0 to m – 1, respectively. You are given two 2D integer arrays edges1 and edges2 of lengths n
You are given a 0-indexed array heights of positive integers, where heights[i] represents the height of the ith building. If a person is in building i, they can move
You are given an integer array arr of length n that represents a permutation of the integers in the range [0, n – 1]. We
You are given an integer array prices where prices[i] is the price of the ith item in a shop. There is a special discount for items
You are given a string s and an integer repeatLimit. Construct a new string repeatLimitedString using the characters of s such that no letter appears more than repeatLimit times in a
Given two sorted arrays a[] and b[] and an element k, the task is to find the element that would be at the kth position of the
There is a school that has classes of students and each class will be having a final exam. You are