
大数据算法
deywós
长风破浪会有时,直挂云帆济沧海。
展开
-
java实现二叉树(打印直观,易于理解)
java实现二叉树(较简单的实现)二叉树的术语:无序数组:查找删除慢,大小固定 有序数组:插入慢,删除慢 链表:插入和删除慢,查找慢二叉树:树中每个节点最多只能有两个子节点,这样的树就称为二叉树 树:由边连接着节点构成术语: 根: 树顶端的节点称为根。一棵树只有一个根。父节点:每个节点(除了根)都恰好有一条边向上连接到另外一个节点, 上面的这个节点就叫做下面这个节点的“父节点”子节点:每个节点都可能原创 2017-12-22 11:30:30 · 2594 阅读 · 0 评论 -
87. Scramble String(leetcode)
原题网址:https://leetcode-cn.com/problems/scramble-string/description/Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possib...转载 2018-05-02 16:31:00 · 197 阅读 · 0 评论 -
819. Most Common Word(leetcode)
Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at least one word that isn't banned, and that the answer...原创 2018-04-25 16:24:45 · 802 阅读 · 0 评论 -
6.ZigZag(leetcode)
原题地址: https://leetcode-cn.com/problems/zigzag-conversion/description/ 将字符串 “PAYPALISHIRING” 以Z字形排列成给定的行数: P A H N A P L S I I G Y I R 之后从左往右,逐行读取字符:”PAHNAPLSIIGYIR” 实现一个将字符串进行指定行数变换的函...原创 2018-05-28 14:47:55 · 570 阅读 · 0 评论