[抄题]: 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. Acc ...
分类:
其他好文 时间:
2018-05-11 12:41:54
阅读次数:
164
ARM中有两条指令用于在状态寄存器和通用寄存器之间传送数据。 针对32位的ARM处理器,状态寄存器就是一个32位长的寄存器。每个位的含义如下图: 分成了4部分: 1,条件标志位 N(Negative), Z(Zero), C(Carry), V(Verflow)统称为条件标志位。ARM指令可以根据C ...
分类:
其他好文 时间:
2018-05-10 23:34:44
阅读次数:
258
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. 字符串相乘。 解决: 1、 ...
分类:
其他好文 时间:
2018-05-08 19:36:03
阅读次数:
169
题目:接雨水 难度:hard 题目内容: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able t ...
分类:
移动开发 时间:
2018-05-08 00:52:22
阅读次数:
264
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 maxim ...
分类:
其他好文 时间:
2018-05-07 19:55:17
阅读次数:
153
https://leetcode.com/problems/random-pick-index/description/ Reservoir Sampling ...
分类:
其他好文 时间:
2018-05-06 16:28:32
阅读次数:
118
[抄题]: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is ...
分类:
其他好文 时间:
2018-05-01 17:47:28
阅读次数:
127
蓄水池抽样——《编程珠玑》读书笔记 382. Linked List Random Node 398. Random Pick Index 蓄水池抽样——《编程珠玑》读书笔记 382. Linked List Random Node 398. Random Pick Index 问题:如何随机从n个 ...
分类:
编程语言 时间:
2018-04-30 13:37:33
阅读次数:
283
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
分类:
其他好文 时间:
2018-04-29 23:17:21
阅读次数:
247