码迷,mamicode.com
首页 >  
搜索关键字:you    ( 26666个结果
【LeetCode】Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-05-19 08:07:26    阅读次数:288
【leetcode】Best Time to Buy and Sell Stock
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-05-18 20:30:16    阅读次数:301
【leetcode】Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-05-18 19:39:55    阅读次数:355
JavaScript Patterns 2.3 - For loops
Do you know how to write the for-loop efficiently? Read this to get it. :)
分类:编程语言   时间:2014-05-18 19:24:37    阅读次数:382
Install MongoDB driver for PHP on XAMPP for Mac OSX
试了不少方法,最后还是这个最有效。[转自:http://thatsimplecode.com/install-mongodb-driver-for-php-on-xampp-for-mac-osx]You need to have the following installed in your Ma...
分类:数据库   时间:2014-05-18 19:10:28    阅读次数:305
[矩阵+线段树] zoj 3772 Calculate the Function
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5235 Calculate the Function Time Limit: 2 Seconds      Memory Limit: 65536 KB You are given a list of numbers A1 A2 .. AN...
分类:其他好文   时间:2014-05-18 09:52:49    阅读次数:410
SPOJ GSS4 Can you answer these queries IV (线段树)
题目大意: 给出N个数   0     操作   把 l -----  r之间的数全部开平方 1     操作  输出 l -----r  之间的和 思路分析: 判断区间里的数字是否全相同。如果相同, 将cov 置为该数 查询的时候和更新的时候,如果碰到cov != -1 的  就直接返回就可以了 #include #include #include...
分类:其他好文   时间:2014-05-18 05:25:06    阅读次数:227
Leetcode | Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o...
分类:其他好文   时间:2014-05-18 02:34:57    阅读次数:352
【LeetCode】Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-05-18 02:11:19    阅读次数:302
linux内核-红黑树
//rbtree.h /* Red Black Trees (C) 1999 Andrea Arcangeli This program is free software; you can redistribute it and/or modify it under the terms of the...
分类:系统相关   时间:2014-05-18 01:05:37    阅读次数:489
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!