
搜索
死咸鱼的成长之路
这个作者很懒,什么都没留下…
展开
-
Children of the Candy Corn
The cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippies, and other terrors...原创 2018-02-21 15:10:56 · 181 阅读 · 0 评论 -
红与黑
有一间长方形的房子,地上铺了红色、黑色两种颜色的正方形瓷砖。你站在其中一块黑色的瓷砖上,只能向相邻的黑色瓷砖移动。请写一个程序,计算你总共能够到达多少块黑色的瓷砖。Input包括多个数据集合。每个数据集合的第一行是两个整数W和H,分别表示x方向和y方向瓷砖的数量。W和H都不超过20。在接下来的H行中,每行包括W个字符。每个字符表示一块瓷砖的颜色,规则如下 1)‘.’:黑色的瓷砖; 2)‘#’:白色...原创 2018-03-10 11:16:01 · 950 阅读 · 0 评论 -
地图变化和步数无限的搜索
On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a square mesh is mark...原创 2018-03-11 15:30:13 · 272 阅读 · 0 评论 -
LeetCode-Word Search
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically nei...原创 2018-03-24 13:54:38 · 152 阅读 · 0 评论 -
瓶子装水
You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) ...原创 2018-03-28 13:18:49 · 1138 阅读 · 0 评论 -
Firetruck UVa208
/* 208 Firetruck The Center City fire department collaborates with the transportation department to maintain maps ofthe city which reflects the current status of the city streets. On any given day, s...原创 2018-04-12 13:47:47 · 173 阅读 · 0 评论