码迷,mamicode.com
首页 >  
搜索关键字:trick or treat on th    ( 4593个结果
Checkio: Roman numerals
题目: Roman numerals come from the ancient Roman numbering system. They are based on specific letters of the alphabet which are combined to signify the sum (or, in some cases, the difference) of th...
分类:其他好文   时间:2014-06-20 12:27:09    阅读次数:394
Android多线程研究(6)——多线程之间数据隔离
在上一篇《Android多线程研究(5)——线程之间共享数据》中对线程之间的数据共享进行了学习和研究,这一篇我们来看看如何解决多个线程之间的数据隔离问题,什么是数据隔离呢?比如说我们现在开启了两个线程,这两个线程都要同时给同一个全局变量data赋值,各个线程操作它赋值后的变量数据,这里就需要用到隔离。先看一段代码:import java.util.Random; public class Th...
分类:移动开发   时间:2014-06-20 11:25:58    阅读次数:321
基于Servlet、JSP、JDBC、MySQL的登录模块(含过滤器的使用和配置)
接前文的注册模块,本篇是登录模块。主要包括登录主界面,和登录相关编写的LoginAction、LoginDao和LoginService。以及配置的Filter。下面按逻辑顺序记录详细过程和代码:一、在前文的index目录点击登录按钮后,通过javascript跳转至LoginAction。 function login(){ var th = document.form1; if(...
分类:数据库   时间:2014-06-20 10:53:49    阅读次数:385
leetcode--Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.public class Solution { /** Convert th...
分类:其他好文   时间:2014-06-10 00:22:44    阅读次数:259
代码中的魔鬼细节
关于程序性能、内存、稳定性相关的一些点点滴滴总结。...
分类:其他好文   时间:2014-06-08 16:44:05    阅读次数:230
POJ 3615 Cow Hurdles.
Description Farmer John wants the cows to prepare for the county jumping competition, so Bessie and the gang are practicing jumping over hurdles. They are getting tired, though, so they want to be ...
分类:其他好文   时间:2014-06-08 15:55:10    阅读次数:199
projecteuler---->problem=18----Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 That is, 3 + 7 + 4 + 9 = 23. Find th...
分类:其他好文   时间:2014-06-07 13:45:25    阅读次数:189
SPOJ 3273 - Order statistic set , Treap
点击打开链接题意:集合S支持一下四种操作: INSERT(S,x) : 假设S中没有x,则插入xDELETE(S,x): 假设S中有x,则删除xK-TH(S): 输出S中第K小的数COUNT(S,x): 统计S中小于x的数有多少个一共同拥有Q(1 ≤ Q ≤ 200000)次操作。Tr...
分类:其他好文   时间:2014-06-06 21:55:34    阅读次数:277
POJ2632——Crashing Robots
Crashing RobotsDescriptionIn a modernized warehouse, robots are used to fetch the goods. Careful planning is needed to ensure that the robots reach th...
分类:其他好文   时间:2014-06-02 13:13:23    阅读次数:283
【leetcode】 Text Justification
问题: 给定一个字符串数组words,一个整数L,将words中的字符串按行编辑,L表示每行的长度。 要求: 1)每个单词之间至少是有一个空格隔开的。 2)最后一行每个单词间只间隔一个空格, 最后一个单词后不足L长度的用空格填充。 3)除最后一行外,其他行进行填充长度的空格要均分,不能均分的,将余数代表的空格数依次填充在行左。 For example, words: ["Th...
分类:其他好文   时间:2014-06-01 15:43:03    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!