本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- xiangjie88
- zysnba
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- gengyun12
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sam123456gz
- sichunli_030
- arpenker
- tanling8334
- gaojingsong
- kaizi1992
- xpenxpen
- 龙儿筝
- jh108020
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- luxurioust
- lemonhandsome
- mengjichen
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- mwhgJava
- kingwell.leng
最新文章列表
Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary tree ...
POJ 2243 Knight Moves
原题传送门:http://poj.org/problem?id=2243
Knight Moves
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 11197
Accepted: 6318
Description
A friend of you is doing resear ...
Directed Graph
1. Digraph: Set of vertices connected pairwise by directed edges.
2. Digraph applications :
3. Some digraph problems:
-- Path: Is there a directed path from s to t ?
-- Shortes ...
poj 2157 Maze
bfs.
先找小写字母,标记每种小写原来总共的exsit[], 能过搜到的小写字母用f[]标记,搜到一个,就加一,如果搜到的是大写字母,判断f[]>exsit[] 如果是,入队,如果不是,先保存起来,之后每次判断一下,如果满足f[]>exsit[]就入队。如果搜到‘G’结束搜索,得出答案。
#include<iostream>
#include<cstd ...
Python BTree 学习-广度优先搜索
不说别的见源码
#coding=utf-8
import sys, os
import bisect
import string
class Entity(object):
"""data entity"""
__slots__ = ("key", "valu ...
Poj 3037 Skiing
Skiing
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3051
Accepted: 844
Special Judge
Description
...
pku3083Children of the Candy Corn-模拟+bfs
pku3083Children of the Candy Corn
模拟的部分写了一下午
写bfs的时候还不知道什么是bfs……
然后去写bfs模板题(记录在前两篇博客里)
然后贴bfs完成后就一直Runtime Error。。。
因为开的数组是 mp[40][40] ,然后数据里正好有 40*40 就杯具的Runtime Error了十多次
#inc ...
POJ 2251 Dungeon Master
题意:给你一个L.R.C的地牢(L*R*C的三维地牢)。求出从s到e的最短路。
Sample Input
3 4 5
S....
.###.
.##..
###.#
#####
#####
##.##
##...
#####
#####
#.###
####E
1 3 3
S##
#E#
###
0 0 0
Sample Output
Escaped in 11 ...
POJ 1324 Holedox Moving 贪食蛇
Description
During winter, the most hungry and severe time, Holedox sleeps in its lair. When spring comes, Holedox wakes up, moves to the exit of its lair, comes out, and begins its new life. ...
【搜索之BFS + 剪枝】杭电 hdu 1175 连连看
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2012 panyanyany All rights reserved.
URL : http://acm. ...
【搜索之BFS + 优先队列】杭电 hdu 1242 Rescue
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2012 panyanyany All rights reserved.
URL : http://ac ...
【搜索之BFS】杭电 hdu 1240 Asteroids!
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2012 panyanyany All rights reserved.
URL : http://ac ...
【搜索之BFS + 优先队列】杭电 hdu 1180 诡异的楼梯
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2012 panyanyany All rights reserved.
URL : http://ac ...