1 /*** 2 * Licensed to the Apache Software
Foundation (ASF) under one or more 3 * contributor license agreements. See the
NOTICE file distribut...
分类:
编程语言 时间:
2014-06-16 10:37:31
阅读次数:
287
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
原题地址:https://oj.leetcode.com/problems/gray-code/题意:The
gray code is a binary numeral system where two successive values differ in only
one bit.Given a...
分类:
编程语言 时间:
2014-06-16 07:42:27
阅读次数:
242
Question:Given a stringsand a dictionary of
wordsdict, determine ifscan be segmented into a space-separated sequence of one
or more dictionary words.F...
分类:
其他好文 时间:
2014-06-16 07:32:47
阅读次数:
186
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