码迷,mamicode.com
首页 >  
搜索关键字:each    ( 14050个结果
HDU - 4941 Magical Forest
Problem Description There is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of energy, Each fruit has its location(Xi, Yi) and the en...
分类:其他好文   时间:2014-08-13 10:36:35    阅读次数:214
JQuery操作TreeView的全选,反选
1 3 JavaScript部分代码 1 $( 2 function () { 3 //顶级选择 4 $("a[id^='content_tvt']").each(function (i, item) { 5 var ...
分类:Web程序   时间:2014-08-13 10:04:55    阅读次数:225
Topcoder SRM 627 div1 HappyLettersDiv1 : 字符串
Problem StatementThe Happy Letter game is played as follows: At the beginning, several players enter the field. Each player has a lowercase English le...
分类:移动开发   时间:2014-08-13 03:33:35    阅读次数:201
POJ 2738 Two Ends(记忆化)
Description In the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Players take turns removing a card from either end...
分类:其他好文   时间:2014-08-13 01:18:05    阅读次数:209
POJ 2907 Collecting Beepers (DFS+回溯)
Description Karel is a robot who lives in a rectangular coordinate system where each place is designated by a set of integer coordinates (x and y). Your job is to design a program that will help ...
分类:其他好文   时间:2014-08-13 01:17:24    阅读次数:312
POJ 1856 Sea Battle(BFS).
~~~~ 题意: 给你一个R*C的图,求其由图中连通‘#“所组成的矩形的个数。  注意:If the ships were placed correctly (i.e., there are only rectangles that do not touch each other even with a corner), print the sentence "There are S shi...
分类:其他好文   时间:2014-08-13 01:16:24    阅读次数:242
Clone Graph
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.思路:使用BFS遍历无向图。使用map记录原始节点和新节点的地址映射,使用set记录已经完成复制操作的节点地址...
分类:其他好文   时间:2014-08-13 00:52:24    阅读次数:219
[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-08-13 00:28:34    阅读次数:324
hdu4941 Magical Forest
Problem Description There is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of energy, Each fruit has its location(Xi, Yi) and the ...
分类:其他好文   时间:2014-08-12 22:19:04    阅读次数:488
Candy
There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following req...
分类:其他好文   时间:2014-08-12 21:39:14    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!