时间限制:500MS 内存限制:65535K提交次数:37 通过次数:15题型: 编程题语言: G++;GCCDescriptionThe opening ceremony of the 28th Asia Game is coming. In order to prevent the game f...
分类:
其他好文 时间:
2015-06-10 14:05:57
阅读次数:
182
今天用order by排序 后面跟了多个字段,如sql语句:SELECT a.id,a.loginname,a.address,u.id,u.`name`,u.address FROM admin_user AS a,users AS u WHERE a.parent_id=u.parent_id ...
分类:
数据库 时间:
2015-06-10 13:54:45
阅读次数:
152
环境 spring + mybatis 。mybatis采用自动扫描Mapper接口生成代理注入Spring。spring事务采用AOP实现。
1,引入Spring测试jarspring-test-4.1.6.RELEASE
2,单元测试Service如下:package com.order.service;
import org.junit.Test;
import org.junit.run...
分类:
编程语言 时间:
2015-06-10 12:17:19
阅读次数:
178
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.题解完全抄自ref的说明,感谢!“题解:先复习下什么是二叉搜索树(引自Wikipedia):二叉查找树(B...
分类:
其他好文 时间:
2015-06-10 06:33:38
阅读次数:
112
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
其他好文 时间:
2015-06-10 06:32:56
阅读次数:
115
跟之前的解法一模一样Binary Tree Level Order Traversal I,II 不赘述public class Solution { public ArrayList> zigzagLevelOrder(TreeNode root) { ArrayList> r...
分类:
其他好文 时间:
2015-06-10 06:31:24
阅读次数:
94
Order.csusing System;using System.Collections.Generic;using System.ComponentModel;using System.ComponentModel.DataAnnotations;using System.Linq;using ...
分类:
Web程序 时间:
2015-06-10 01:05:02
阅读次数:
242
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For examp...
分类:
编程语言 时间:
2015-06-09 23:30:58
阅读次数:
237
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-06-09 21:35:35
阅读次数:
113
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-06-09 21:30:59
阅读次数:
96