LeetCode OJ House Robber

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping y...

2015-03-31 18:21:56

阅读数:488

评论数:0

LeetCode OJ 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, ...

2015-03-31 17:40:07

阅读数:511

评论数:0

LeetCode OJ Convert Sorted List to Binary Search Tree

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 之前在Sicily做过,就是实现一个AVL树了。 struct TreeN...

2015-03-31 16:55:43

阅读数:464

评论数:0

next_permutation & prev_permutation

#include #include #include using namespace std; //next_permutation()全排列的下一个 //prev_permutation()全排列的前一个,括号中都为数组的起始结束位置的指针 void print_int(int a[]...

2015-03-31 00:31:44

阅读数:550

评论数:0

Sicily 1028. Hanoi Tower Sequence

1028. Hanoi Tower Sequence Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Hanoi Tower is a famous game invented by...

2015-03-31 00:29:39

阅读数:822

评论数:0

Sicily 1779. Fibonacci Sequence Multiplication

1779. Fibonacci Sequence Multiplication Constraints Time Limit: 1 secs, Memory Limit: 63.9990234375 MB Description Maybe all of you...

2015-03-31 00:26:34

阅读数:784

评论数:0

Sicily 1001. Alphacode

1001. AlphacodeConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionAlice and Bob need to send secret messages to each other and are discussi...

2015-03-31 00:25:54

阅读数:589

评论数:0

Sicily 1003. Hit or Miss

1003. Hit or Miss Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description One very simple type of solitaire game known as &...

2015-03-31 00:24:44

阅读数:520

评论数:0

Sicily 1024. Magic Island

1024. Magic Island Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description There are N cities and N-1 roads in Magic-Island. Yo...

2015-03-31 00:24:02

阅读数:776

评论数:0

Sicily 1162. Sudoku

1162. Sudoku Constraints Time Limit: 1 secs, Memory Limit: 32 MB , Special Judge Description Sudoku is a very simple task. A square...

2015-03-31 00:23:42

阅读数:638

评论数:0

Sicily 1317. Sudoku

1317. Sudoku Constraints Time Limit: 10 secs, Memory Limit: 32 MB Description Sudoku is a placement puzzle. The goal is to enter a ...

2015-03-31 00:22:18

阅读数:977

评论数:0

Sicily 1050. Numbers & Letters

1050. Numbers & Letters Constraints Time Limit: 3 secs, Memory Limit: 32 MB Description In the early 80’s, a popular TV show on Dut...

2015-03-31 00:21:36

阅读数:615

评论数:0

Sicily 1063. Who's the Boss

1063. Who's the Boss Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Several surveys indicate that the taller you are, ...

2015-03-31 00:20:48

阅读数:782

评论数:0

Sicily 13907. Dice Game

13907. Dice Game Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description Gunnar and Emma play a lot of board games at home...

2015-03-30 22:15:45

阅读数:465

评论数:0

Sicily 9562. SUME

9562. SUME Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description Once upon a time, there existed a sequence A consisting...

2015-03-30 01:19:57

阅读数:551

评论数:0

Sicily 9017. Amazing Mazes

9017. Amazing Mazes Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description You are requested to solve maze ...

2015-03-30 01:17:32

阅读数:513

评论数:0

Sicily 7151. 1758!

7151. 1758! Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description 1758 is coming! Some boys want to find their dancing...

2015-03-30 01:16:52

阅读数:491

评论数:0

Sicily 9016. Pablo Squarson's Headache

9016. Pablo Squarson's Headache Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description Pablo Squarson is a ...

2015-03-30 01:16:15

阅读数:649

评论数:0

Sicily 7143. Treasure

7143. Treasure Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description One day, MXWai found a treasure map. The map was ...

2015-03-30 01:15:17

阅读数:618

评论数:0

Sicily 4313. Boys and Girls

4313. Boys and Girls Constraints Time Limit: 1 secs, Memory Limit: 256 MB Description There are N boys and N girls at a dance p...

2015-03-30 01:14:40

阅读数:610

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭