码迷,mamicode.com
首页 >  
搜索关键字:you have two operati    ( 41000个结果
An Unfair Game-[ACdream1035]
Problem DescriptionThere are n people and n target, everyone should get one target, no two people get the same target, the last one who get the target...
分类:其他好文   时间:2014-05-06 09:00:51    阅读次数:354
HDU 3308 LCIS(线段树)
Problem DescriptionGiven n integers.You have two operations:U A B: replace the Ath number by B. (index counting from 0)Q A B: output the length of the...
分类:其他好文   时间:2014-05-06 01:20:33    阅读次数:332
[leetcode] Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-06 00:51:29    阅读次数:353
Leetcode | Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.想法很简单,就是两两合并。在Merge Two Sorted Lists这道题已经实现了两两合并的代码了,就...
分类:其他好文   时间:2014-05-06 00:22:01    阅读次数:337
Effective Java 68 Prefer executors and tasks to threads
The general mechanism for executing tasks is the executor service. If you think in terms of tasks and let an executor service execute them for you, yo...
分类:编程语言   时间:2014-05-05 23:32:44    阅读次数:389
hust 1024 dance party
题目描述You are organizing a dance party. The party will be attended by n boys and n girls. There will be several rounds of dancing. In each round, you di...
分类:其他好文   时间:2014-05-05 23:18:13    阅读次数:364
Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".思路:一个二进制字符串相加;首先从字符串的末尾开始,先二进制字符转化为数字,然后再相加;然后将...
分类:其他好文   时间:2014-05-05 23:10:15    阅读次数:319
Play framework logging设置
play的logger是基于Log4j,Play 2.0 uses logback as its logging engine.一、配置1. 在conf/application.conf中设置logger的级别// Logger// ~~~~~~~~~~~~~~~~~~~~~~~~~// You c...
分类:其他好文   时间:2014-05-05 22:59:19    阅读次数:500
Swap Nodes in Pairs
Link:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2-...
分类:其他好文   时间:2014-05-05 22:45:37    阅读次数:331
【LeetCode OJ】Word Ladder I
Problem Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are inspected in this problem:Hash Table. One hash set is the words di...
分类:其他好文   时间:2014-05-05 22:44:44    阅读次数:393
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!