留下两个例子作为参考,1. 追逐小方块的例子2. HashMap 和 Iterator
的例子Example one:import acm.graphics.*;import acm.program.*;import
java.awt.*;import java.awt.event.*;public...
分类:
编程语言 时间:
2014-06-29 12:16:41
阅读次数:
209
题目链接 Given an unsorted integer array, find the
first missing positive integer. For example, Given [1,2,0] return 3, and
[3,4,-1,1] return 2. Your algo...
分类:
其他好文 时间:
2014-06-29 07:44:48
阅读次数:
321
题目
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
Note: Recur...
分类:
其他好文 时间:
2014-06-20 10:22:00
阅读次数:
221
原题地址:https://oj.leetcode.com/problems/interleaving-string/题意:Givens1,s2,s3,
find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1...
分类:
编程语言 时间:
2014-06-06 07:26:08
阅读次数:
351
Given a sorted linked list, delete all
duplicates such that each element appear onlyonce.For
example,Given1->1->2, return1->2.Given1->1->2->3->3,
retu...
分类:
其他好文 时间:
2014-06-06 07:00:36
阅读次数:
269
Given a sorted linked list, delete all nodes
that have duplicate numbers, leaving onlydistinctnumbers from the original
list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-06-06 06:57:18
阅读次数:
271
ServiceStack是一个开源的、支持.NET与Mono平台的REST Web
Services框架。InfoQ有幸与Demis
Bellot深入地讨论了这个项目。在这篇两部分报道的第1部分中,我们主要谈论了ServiceStack项目建立的原动力,以及项目中的各种设计方案选择。InfoQ:你是...
分类:
其他好文 时间:
2014-06-05 19:58:22
阅读次数:
420
Given two binary strings, return their sum
(also a binary string).For example,a ="11"b ="1"Return"100".public class
Solution { /**The program is us...
分类:
其他好文 时间:
2014-06-05 14:08:35
阅读次数:
188
Given a list, rotate the list to the right
bykplaces, wherekis non-negative.For
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL./**
*...
分类:
其他好文 时间:
2014-06-05 13:44:26
阅读次数:
250
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->1->4->3.Your algor...
分类:
其他好文 时间:
2014-06-05 13:41:44
阅读次数:
231