Happy 2009
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2394 Accepted Submission(s): 802
Problem Description
No matter you kn...
分类:
移动开发 时间:
2014-06-19 11:54:54
阅读次数:
272
题目
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 maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 11:46:47
阅读次数:
277
True love
Time Limit: 4000/2000 MS (Java/Others)
Memory Limit: 128000/64000 KB (Java/Others)
Problem Description
Is there true love in the world?maybe or not, god knows! We know there...
分类:
其他好文 时间:
2014-06-16 12:46:08
阅读次数:
234
题目
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
方法
矩阵坐标的转换,循环替换。
public voi...
分类:
其他好文 时间:
2014-06-16 11:28:03
阅读次数:
199
wa了十次,原来变量名写错。二维树状数组。 1 #include 2 #include 3 4
#define MAXN 1002 5 6 int nums[MAXN][MAXN]; 7 8 void swap(int *x, int *y) { 9
int tmp;10 ...
分类:
其他好文 时间:
2014-06-16 08:34:51
阅读次数:
216
【Swift初步】1、第一个swift程序。 You don’t need to import
a separate library for functionality like input/output or string handling. Code
written at global s...
分类:
其他好文 时间:
2014-06-16 08:30:56
阅读次数:
204
Swap Nodes in Pairs:Given a linked list, swap every
two adjacent nodes and return its head.For example,Given1->2->3->4, you
should return the list as2...
分类:
其他好文 时间:
2014-06-13 17:04:27
阅读次数:
180
Say you have an array for which theithelement
is the price of a given stock on dayi.If you were only permitted to complete at
most one transaction (ie...
分类:
其他好文 时间:
2014-06-13 15:55:47
阅读次数:
273
9 tools to help you with Java Performance
TuningJava Performance Tuning tools to help you improve your Java CodePreviously
I wrote an article about 5 ...
分类:
编程语言 时间:
2014-06-13 15:07:34
阅读次数:
458
Linked List Cycle:Given a linked list, determine if
it has a cycle in it.Follow up:Can you solve it without using extra
space?解题分析:大致思想就是设置两个指针,一个指针每次...
分类:
其他好文 时间:
2014-06-13 14:41:54
阅读次数:
238