码迷,mamicode.com
首页 >  
搜索关键字:example 复杂条件查询    ( 17809个结果
Flatten Binary Tree to Linked List leetcode java
题目:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flatten...
分类:编程语言   时间:2014-07-24 09:55:43    阅读次数:211
Rotate List leetcode java
题目: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-....
分类:编程语言   时间:2014-07-24 09:53:16    阅读次数:219
Reverse Linked List II leetcode java
题目:Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->....
分类:编程语言   时间:2014-07-24 09:49:43    阅读次数:204
Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example, Given [100, 4, 200, 1, 3, 2], The lo...
分类:其他好文   时间:2014-07-24 00:49:07    阅读次数:200
HDU 4869 Turn the pokers(思维+组合公式+快速幂)
Turn the pokers 大意:给出n次操作,给出m个扑克,然后给出n个操作的个数a[i],每个a[i]代表可以翻的扑克的个数,求最后可能出现的扑克的组合情况。 Hint Sample Input: 3 3 3 2 3 For the this example: 0 express face down,1 express face up Ini...
分类:其他好文   时间:2014-07-23 22:35:57    阅读次数:254
HDU 4869 Turn the pokers(思维+组合公式+快速幂)
Turn the pokers大意:给出n次操作,给出m个扑克,然后给出n个操作的个数a[i],每个a[i]代表可以翻的扑克的个数,求最后可能出现的扑克的组合情况。HintSample Input:3 3 3 2 3For the this example: 0 express face down,...
分类:其他好文   时间:2014-07-23 22:25:37    阅读次数:473
灰色模型的malab程序
function [y,p,e]=huise_1_1(X,k) %灰色模型的malab程序%Example [y,p]=gm_1_1([200 250 300 350],2) %接口描述: X的预测的初始数列,|X|>4,K是指向后进行预测的个数%命令格式: 程序保存的文件名,eg:huise.m ...
分类:其他好文   时间:2014-07-23 22:24:57    阅读次数:375
【leetcode刷题笔记】Merge Intervals
Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].题解:首先对所有的区间按照s...
分类:其他好文   时间:2014-07-23 18:01:57    阅读次数:210
赵雅智_AndroidUI_listview的item滑动删除效果
package com.example.listsildedel; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.ListV...
分类:移动开发   时间:2014-07-23 16:38:32    阅读次数:286
鸡肋的JdbcRDD
今天准备将mysql的数据倒腾到RDD,很早以前就知道有一个JdbcRDD,就想着使用一下,结果发现却是鸡肋一个。       首先,看看JdbcRDD的定义: * An RDD that executes an SQL query on a JDBC connection and reads results. * For usage example, see test case ...
分类:数据库   时间:2014-07-23 16:36:21    阅读次数:408
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!