Given an arraynums, there is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbers ...
题目:
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or v...
分类:
编程语言 时间:
2015-07-18 14:13:45
阅读次数:
125
题目:
Sliding Window Maximum
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the win...
478.Identify the two direct sources from where SQL plans can be loaded into the SQL plan baselines.
(Choose two.)
A. Cursor cache
B. Stored outline
C. SQL Tuning Set
D. Automatic Workload Reposit...
分类:
其他好文 时间:
2015-07-18 14:08:27
阅读次数:
175
Given an arraynums, there is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbers ...
题目:
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn’t matter what you leave beyond the new length.
分析:
要求,移除具有n个元素的数组中所有指定的数字,返回删除后的数组长度。看似简单,其实也能体现一个人的编程水平。...
分类:
其他好文 时间:
2015-07-18 12:42:49
阅读次数:
146
coursera上的公开课《https://www.coursera.org/course/textanalytics》系列,讲的非常不错哦。
1、两种关系:Paradigmatic vs. Syntagmatic(聚合和组合)
? Paradigmatic: A & B have paradigmatic relation if they can
be substituted f...
分类:
其他好文 时间:
2015-07-18 12:39:16
阅读次数:
208
039 Combination Sum这道题就是暴力搜索, 但是有个优化 就是 Line 14 处加一个 if a[s] > target 就不需要重复搜索 这样运行时间会从 236ms 变成108ms 1 class Solution: 2 # @param {integer[]} can...
分类:
其他好文 时间:
2015-07-18 07:07:03
阅读次数:
101
Champernowne’s constant
Problem 40
An irrational decimal fraction is created by concatenating the positive integers:0.123456789101112131415161718192021…It can be seen that the 12th digit of the fract...
分类:
其他好文 时间:
2015-07-18 02:06:56
阅读次数:
158
DescriptionGiven n different objects, you want to take k of them. How many ways to can do it?For example, say there are 4 items; you want to take 2 of...
分类:
其他好文 时间:
2015-07-18 02:02:17
阅读次数:
210