题目: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your m ...
分类:
编程语言 时间:
2017-06-20 12:31:29
阅读次数:
155
Problem: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nod ...
分类:
其他好文 时间:
2017-06-16 22:02:04
阅读次数:
133
Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represen ...
分类:
其他好文 时间:
2017-06-14 17:14:32
阅读次数:
132
leetcode 笔记 Linked List 2. Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in r ...
分类:
其他好文 时间:
2017-06-12 23:52:18
阅读次数:
276
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 ...
分类:
其他好文 时间:
2017-06-11 13:45:57
阅读次数:
275
题目: Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example:Given n = 2, return 91. (The answer should be ...
分类:
其他好文 时间:
2017-06-11 11:27:04
阅读次数:
106
Leetcode600 很简单的一道计数题 给定整数n 求不大于n的正整数中 二进制表示没有连续的1的数字个数 在dp过程中只要保证不出现连续1以及大于n的情况即可。 所以设计按位dp[i][j]表示到第i位 j=0表示第i位为0 且值等于n的情况 2为值小于n的情况 j=1表示第i位为1 且值等于 ...
分类:
其他好文 时间:
2017-06-10 14:01:21
阅读次数:
468
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According ...
分类:
其他好文 时间:
2017-06-10 10:42:23
阅读次数:
208
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo ...
分类:
其他好文 时间:
2017-06-08 21:35:15
阅读次数:
200
Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT contain consecutive ...
分类:
其他好文 时间:
2017-06-08 00:20:19
阅读次数:
294