https://leetcode.com/problems/count-primes/ Count the number of prime numbers less than a non-negative number, n. Example: 代码: ...
分类:
其他好文 时间:
2018-11-15 14:33:13
阅读次数:
194
Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we tak ...
分类:
其他好文 时间:
2018-11-11 01:02:02
阅读次数:
198
https://leetcode.com/problems/pascals-triangle-ii/description/ Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's tri ...
分类:
其他好文 时间:
2018-11-10 12:53:57
阅读次数:
182
Given a m x n grid filled with non negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. ...
分类:
其他好文 时间:
2018-11-07 14:08:21
阅读次数:
157
Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algor ...
分类:
其他好文 时间:
2018-11-06 20:56:00
阅读次数:
145
作为一个超级小白,最近开始寻找互联网公司的就业机会,可是无奈代码关难过。于是最近开始刷LeetCode上的习题。 这道题其实可以转换为典型的动态规划01背包问题。它的描述如下: You are given a list of non-negative integers, a1, a2, ..., a ...
分类:
其他好文 时间:
2018-11-06 11:21:08
阅读次数:
149
分析 难度 易 来源 https://leetcode.com/problems/pascals-triangle-ii/ 题目 Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's t ...
分类:
其他好文 时间:
2018-11-02 13:02:18
阅读次数:
122
Given two non negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1: In ...
分类:
其他好文 时间:
2018-11-01 14:09:30
阅读次数:
145
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The pro ...
分类:
编程语言 时间:
2018-10-31 13:58:54
阅读次数:
152
Given an array A of non negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever A[i] ...
分类:
其他好文 时间:
2018-10-31 12:38:00
阅读次数:
163