Loading...
1. 递归前/中/后序遍历 void BTreePreOrder(BTreeNode* root) { if (root == NULL) { return; }...
1. 题目描述 problem link Given two binary trees, write a function to check if they are the same or no...
1. 树的概念及结构 树的概念 树是一种非线性的数据结构,与之相对的是顺序表、链表、栈和队列等线性的数据结构。它由n(n >= 0)个有限节点组成一个具有层次关系的集合。之所以被称为树是因...
1. 什么是字典树 Trie树,又称字典树、前缀树,是一种树形结构,典型的应用场景是在一个海量数据集中快速查找某一个数据,类似功能的高效数据结构还有哈希表,不过哈希表受制于哈希函数的选取以及哈希...
1. 题目描述 problem link Write a function to find the longest common prefix string amongst an array o...