LeetCode 475. Heaters
Description https://leetcode.com/problems/heaters/ Winter is coming! During the contest, your first job is to design a standard heater with a fixed…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/heaters/ Winter is coming! During the contest, your first job is to design a standard heater with a fixed…
Description https://leetcode.com/problems/search-in-a-sorted-array-of-unknown-size/ This is an interactive problem. You have a sorted array of unique elements and an unknown size. You do not have an…
Description https://leetcode.com/problems/find-in-mountain-array/ (This problem is an interactive problem.) You may recall that an array arr is a mountain array if and only if: arr.length >=…
Description https://leetcode.com/problems/shortest-distance-to-target-color/ You are given an array colors, in which there are three colors: 1, 2 and 3. You are also given some queries. Each…
Description https://leetcode.com/problems/search-a-2d-matrix/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following…
Description https://leetcode.com/problems/guess-number-higher-or-lower/ We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have…
Description https://leetcode.com/problems/binary-search/ Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums.…
Description https://leetcode.com/problems/arranging-coins/ You have a total of n coins that you want to form in a staircase shape, where every k-th row must…
Description https://leetcode.com/problems/split-array-largest-sum/ Given an array nums which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays.…
Description https://leetcode.com/problems/count-of-smaller-numbers-after-self/ You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the…