搜索
文章平均质量分 59
旻宇
New Acmer
展开
-
Codeforces Round #245 (Div. 1) A /(Div.2 C) Xor-tree
原题链接原创 2014-05-13 22:55:13 · 1121 阅读 · 0 评论 -
Leetcode #230 Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmallest to find thekth smallest element in it.Note: You may assume k is always valid, 1 ≤ k ≤ BST's total elements.Follow up:What if the BS原创 2015-08-01 18:27:42 · 417 阅读 · 0 评论 -
Leetcode #79 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原创 2015-07-31 19:34:21 · 367 阅读 · 0 评论 -
LeetCode #124 Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 / \ 2 3Return 6.原创 2015-08-10 11:02:14 · 399 阅读 · 0 评论 -
Leetcode N-Queens系列
#51 N-QueensThe n-queens puzzle is the problem of placing n queens on ann×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solutions to the原创 2015-08-09 20:55:54 · 433 阅读 · 0 评论 -
Leetcode #212 Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horiz原创 2015-08-01 12:31:27 · 430 阅读 · 0 评论 -
leetcode #211 Add and Search Word - Data structure design
Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a regular expression string containing only le原创 2015-05-17 18:23:09 · 455 阅读 · 0 评论 -
ZOJ1649 Rescue 路径深度图算法
Time Limit: 2 Seconds Memory Limit: 65536 KBAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M Angel's friends want to save Angel. Th原创 2014-08-11 18:12:05 · 549 阅读 · 0 评论 -
ZOJ1008 Gnome Tetravex DFS
URL: Time Limit: 10 Seconds Memory Limit: 32768 KB原创 2014-08-10 10:47:46 · 504 阅读 · 0 评论 -
ZOJ2110 Tempter of the Bone
URL:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1110原创 2014-07-28 22:34:32 · 453 阅读 · 0 评论 -
uva216 Getting in Line
Computer networking requires that the computers in the network be linked.This problem considers a ``linear" network in which the computers are chained together so that each is connected to exactly t原创 2015-08-18 20:23:52 · 452 阅读 · 0 评论