Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following: Choo ...
分类:
其他好文 时间:
2017-12-17 20:53:18
阅读次数:
177
题目: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the ...
分类:
编程语言 时间:
2017-12-16 20:36:15
阅读次数:
155
lc 486 Predict the Winner [486 Predict the Winner][1] Given an array of scores that are non negative integers. Player 1 picks one of the numbers from ...
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index ? 异常对象是:当参数值超出调用的方法所定义的允许取值范围时引发的异常。 你要判断 ...
分类:
其他好文 时间:
2017-12-15 15:06:06
阅读次数:
265
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2017-12-14 00:01:15
阅读次数:
136
Python的assert是用来检查一个条件,如果它为真,就不做任何事。如果它为假,则会抛出AssertError并且包含错误信息。例如: 1 2 3 4 5 6 py> x = 23 py> assert x > 0, "x is not zero or negative" py> assert ...
分类:
编程语言 时间:
2017-12-11 13:56:27
阅读次数:
252
layout: post title: 2017 12 05 Redis 入门 tags: Redis 实时特征 UCB, Tompson sampling Redis 是什么? Redis是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key Value数据库,并提供 ...
分类:
编程语言 时间:
2017-12-10 19:32:05
阅读次数:
149
题目: Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given1->2->3->4->5->NULLand k =2,return4->5->1->2->3- ...
分类:
其他好文 时间:
2017-12-10 14:26:46
阅读次数:
192
Background reading: Forsyth and Ponce, Computer Vision Chapter 7 Image sampling and quantization Types of images: binary, gray scale, color Resolution ...
分类:
移动开发 时间:
2017-12-09 22:36:07
阅读次数:
370
Description: Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. Example 1: Example 2: 解 ...
分类:
其他好文 时间:
2017-12-05 20:07:02
阅读次数:
108