Minimum Cost to Hire K Workers
There are N workers. The i-th worker has a quality quality[i] and a minimum wage expectation wage[i]. Now you want…
Master C, C++, Data Structures, Algorithms, Design Patterns, and More!
There are N workers. The i-th worker has a quality quality[i] and a minimum wage expectation wage[i]. Now you want…
Given a non-empty string s and an integer k, rearrange the string such that the same characters are at least…
You are given two integer arrays nums1 and nums2 sorted in non-decreasing order and two integers k and target. Find…
Given a square matrix matrix, where each row and column is sorted in non-decreasing order, find the kth smallest element…
You are given an array of k linked lists, each linked list is sorted in ascending order. Merge all the…
Given an array of distinct integers candidates and a target integer target, return all possible combinations of candidates where the…
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome…
Given a string containing digits from 2 to 9 inclusive, return all possible letter combinations that the number could represent…
Given a collection of distinct integers, nums, return all possible permutations of the integers.
Given a set of distinct integers nums, return all possible subsets (the power set) of the set.