问题描述: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there ...
分类:
其他好文 时间:
2018-06-19 13:55:08
阅读次数:
159
java数据类型 基本数据类型(一般使用小写) 特点 除了值没有任何标识,1=1 不可变数据类型 在作用域范围内,局部栈中存储 建立成本低 对象数据类型(除了基本数据类型以外的数据类型) 特点 除了值以外还有标识 部分可变 堆中存储,自动回收 泛型进行统一的表示 建立成本高 祖先:均为object的 ...
分类:
编程语言 时间:
2018-06-17 17:56:31
阅读次数:
147
问题描述: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: Example 1: Example 2: Example 3: 解题思路: ...
分类:
其他好文 时间:
2018-06-16 10:33:42
阅读次数:
146
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:
其他好文 时间:
2018-06-16 10:28:25
阅读次数:
183
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2018-06-14 23:58:34
阅读次数:
288
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains ...
分类:
其他好文 时间:
2018-06-14 20:57:53
阅读次数:
170
It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if ...
分类:
其他好文 时间:
2018-06-14 14:44:53
阅读次数:
268
Given a set of N (> 1) positive integers, you are supposed to partition them into two disjoint sets A~1~ and A~2~ of n~1~ and n~2~ numbers, respective ...
分类:
其他好文 时间:
2018-06-11 18:58:12
阅读次数:
140
问题描述: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: 解题思路: 这道题我认为主要是找到什么时候变化坐标以及如何变化 ...
分类:
其他好文 时间:
2018-06-11 10:55:40
阅读次数:
163
是说自然数序列看成一个长字符串,问我们第N位上的数字是什么。那么这道题的关键就是要找出第N位所在的数字,然后可以把数字转为字符串,这样直接可以访问任何一位。那么我们首先来分析自然数序列和其位数的关系,前九个数都是1位的,然后10到99总共90个数字都是两位的,100到999这900个数都是三位的,那 ...
分类:
其他好文 时间:
2018-06-10 12:04:38
阅读次数:
180