1、索引器 1 class Player 2 { 3 private int[] arr = new
int[100]; 4 public int this[int index] 5 { 6 get { 7 ...
分类:
Web程序 时间:
2014-05-28 04:00:03
阅读次数:
216
软件工程结束了,这是一门很不同的课程,它的教学方式可以是多种多样的,既可以丰富理论知识,也可以加强动手能力,但是我认为仍要有一些改进的地方。
我建议在课上老师多为我们指导一些编程方面的东西,虽然编程能力是需要自己慢慢锻炼提高的,但是仍要有人为我们指定前进的方向,我感觉老师在这方面做的不够多,所以我....
分类:
其他好文 时间:
2014-05-26 18:46:00
阅读次数:
178
问题:
给定两个字符串,S,T,返回S中包含T中所有字符的最短的字串,若不存在,则返回"".时间复杂度为O(n)。
例如:S = "ADOBCODEBANC"
T = "ABC"
返回BANC
生活场景:
把问题具体化现实化一点。有n层楼,每层楼里放有一个物品,现在老板给你一个物品清单,里面是要你集齐的物品,你可以乘坐电梯,但是电梯只停一次,停在哪...
前几天在奶茶东买了本Pro
Android4,忽然间发现章节之后的面试题很棒,决定花点时间整理整理,学习学习,放在这里,敬请各位看官拍砖!2.1
Android开发是否需要JRE和JDKJRE为Java Runtime Environment的简称,Java Runtime Environment(...
分类:
移动开发 时间:
2014-05-25 20:42:38
阅读次数:
292
1、Activity的生命周期2、Service的生命周期3、Service和Activity在同一个线程吗默认情况下是在同一个主线程中。但可以通过清单中android:process属性配置不同的进程。4、java中的soft
reference是个什么东西 如果一个对象只具有软引用,则内存空间....
分类:
移动开发 时间:
2014-05-25 19:17:40
阅读次数:
336
【题目】
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
【题意】
给定一个链表L,和非负数K,要求把链表的后k个节点移到链表前
【思路】
先将指针指向指向倒数第K个节点,然后...
分类:
其他好文 时间:
2014-05-25 18:20:06
阅读次数:
252
【题目】
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
Example 1:
Given intervals [1,3],[6,9], insert and mer...
分类:
其他好文 时间:
2014-05-25 12:56:43
阅读次数:
271
【题目】
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, 4 ],
[ 7, 6, 5 ]
]
【题意】
给定整数n, 将1,2,3...nxn个数按螺旋旋转的方式填入n...
分类:
其他好文 时间:
2014-05-25 07:08:17
阅读次数:
235
【题目】
The set [1,2,3,…,n] contains a total of n! unique permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
"123"
"132"
"213"
"231"
"312"
"321"
Given n and k, return the kth permutation ...
分类:
其他好文 时间:
2014-05-25 06:13:37
阅读次数:
276
python有什么工具可以找程序的bug,和分析程序的错误?PyChecker:
PyChecker是一个python脚本分析工具,它可以发现python脚本中的bugs
Pylint:
ylint是一个Python代码分析工具,它分析Python代码中的错误,查找不符合代码风格标准和有潜在问题的代码。
Pylint是一
个Python工具,..
分类:
编程语言 时间:
2014-05-25 05:09:46
阅读次数:
311