第87天。 今天的题目是 Min Cost Climbing Stairs : On a staircase, the i-th step has some non-negative cost cost i assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. You need to…

第57天。 今天的题目是 Counting Bits : Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an…

第54天。 今天的题目是 Perfect-Squares : Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, given n = 12, return 3 because…

第50天。 恍恍惚惚,就50天了。 今天的题目是 Maximal Square : Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, given the following matrix…

第35天。 又一次一个早上没做出来,难道要跪在DP上了吗? 今天的题目是 Partition to K Equal Sum Subsets : Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty…

本站总访问量次 本站访客数人次

Design by wuxiaobai24. Power by Gatsby.js. The website content is licensed CC BY NC SA 4.0.

You can find the source code in Github.