岁月悠悠,衰微只及肌肤;热忱抛却,颓唐必至灵魂。

Category
递归
《算法笔记》

递归

全排列(DFS) (排列树) (原题:P1706 全排列问题 – 洛谷 | 计算机科学教育新生态 (luog...
avatar
《算法笔记》

区间贪心

区间不相交问题:给出N个开区间(x,y),从中选择可能多的开区间,使得这些开区间两两没有交集。 例如选择对开区间(1,3...
avatar
1034 Head of a Gang
《算法笔记》

1034 Head of a Gang

One way that the police finds the head of a gang is to check...
avatar
1178 File Path
《算法笔记》

1178 File Path

The figure shows the tree view of directories in Windows Fil...
avatar
1176 The Closest Fibonacci Number
《算法笔记》

1176 The Closest Fibonacci Number

The Fibonacci sequence $F_n$ is defined by $F_{n+2}=F_{n+1}+...
avatar
1043 Is It a Binary Search Tree
《算法笔记》

1043 Is It a Binary Search Tree

A Binary Search Tree (BST) is recursively defined as a binar...
avatar
1053 Path of Equal Weight
《算法笔记》

1053 Path of Equal Weight

Given a non-empty tree with root R, and with weight $W_i$​ a...
avatar
《算法笔记》

1020 Tree Traversals

Suppose that all the keys in a binary tree are distinct posi...
avatar
1052 Linked List Sorting
《算法笔记》

1052 Linked List Sorting

A linked list consists of a series of structures, which are ...
avatar
1032 Sharing
《算法笔记》

1032 Sharing

To store English words, one method is to use linked lists an...
avatar