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

Home
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
STL-queue与STL-prority_queue
《算法笔记》

STL-queue与STL-prority_queue

queue queue翻译为队列,在STL中主要则是实现了一个先进先出的容器。 头文件: #include<que...
avatar
STL-map
《算法笔记》

STL-map

map翻译为映射,map可以将任何基本类型(包括STL容器)映射到任何基本类型(包括STL容器)。 头文件: #incl...
avatar
1060 Are They Equal
《算法笔记》

1060 Are They Equal

If a machine can save only 3 significant digits, the float n...
avatar
STL-set
《算法笔记》

STL-set

set翻译为集合,是一个内部自动有序且不含重复元素的容器。内部为红黑树。 头文件: #include<set>...
avatar