LeetCode 1710. Maximum Units on a Truck
Description https://leetcode.com/problems/maximum-units-on-a-truck/ You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i]…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/maximum-units-on-a-truck/ You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i]…
Description https://leetcode.com/problems/all-elements-in-two-binary-search-trees/ You are given an integer array nums with no duplicates. A maximum binary tree can be built recursively from nums using the following algorithm:…
Description https://leetcode.com/problems/calculate-salaries/ SQL Schema Table Salaries: +—————+———+ | Column Name | Type | +—————+———+ | company_id | int | | employee_id…
Description https://leetcode.com/problems/design-a-stack-with-increment-operation/ Design a stack which supports the following operations. Implement the CustomStack class: CustomStack(int maxSize) Initializes the object with maxSize which is the maximum…
Description https://leetcode.com/problems/remove-duplicates-from-an-unsorted-linked-list/ Given the head of a linked list, find all the values that appear more than once in the list and delete the…
Description https://leetcode.com/problems/sort-transformed-array/ Given a sorted integer array nums and three integers a, b and c, apply a quadratic function of the form f(x) = ax2 + bx + c to each…
Description https://leetcode.com/problems/wiggle-sort/ Given an integer array nums, reorder it such that nums[0] <= nums[1] >= nums[2] <= nums[3]…. You may assume the…
Description https://leetcode.com/problems/sort-characters-by-frequency/ Given a string s, sort it in decreasing order based on the frequency of characters, and return the sorted string.…
Description https://leetcode.com/problems/sorting-the-sentence/ A sentence is a list of words that are separated by a single space with no leading or trailing spaces.…
Description https://leetcode.com/problems/sum-of-all-subset-xor-totals/ The XOR total of an array is defined as the bitwise XOR of all its elements, or 0 if the array is empty. For example, the XOR…