Kawaii-jump 的博客

从入门到放弃


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

Tree7

发表于 2019-08-16 分类于 LeetCode , Tree

题目描述[原题连接][https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/]

序列化是将一个数据结构或者对象转换为连续的比特位的操作,进而可以将转换后的数据存储在一个文件或者内存中,同时也可以通过网络传输到另一个计算机环境,采取相反方式重构得到原数据。

阅读全文 »

Tree6

发表于 2019-08-16 分类于 LeetCode , Tree

题目描述[原题链接][https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/]

给定一个二叉树, 找到该树中两个指定节点的最近公共祖先。

阅读全文 »

Tree5

发表于 2019-08-15 分类于 LeetCode , Tree

题目描述[原题描述][https://leetcode-cn.com/problems/binary-tree-level-order-traversal/]

给定一个二叉树,返回其按层次遍历的节点值。 (即逐层地,从左到右访问所有节点)。

阅读全文 »

Tree4

发表于 2019-08-14 分类于 LeetCode , Tree

题目描述[原题链接][https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/]

根据一棵树的前序遍历与中序遍历构造二叉树。

阅读全文 »

Tree3

发表于 2019-08-13 分类于 LeetCode , Tree

题目描述[原题链接][https://leetcode-cn.com/problems/binary-tree-inorder-traversal/]

给定一个二叉树,返回它的中序 遍历。

阅读全文 »

Tree2

发表于 2019-08-12 更新于 2019-08-13 分类于 LeetCode , Tree

题目描述[原题链接][https://leetcode-cn.com/problems/symmetric-tree/]

给定一个二叉树,检查它是否是镜像对称的。

阅读全文 »

Tree1

发表于 2019-08-11 更新于 2019-08-13 分类于 LeetCode , Tree

题目描述[原题链接][https://leetcode-cn.com/problems/validate-binary-search-tree/]

给定一个二叉树,判断其是否是一个有效的二叉搜索树。

阅读全文 »

LinkList10

发表于 2019-08-10 更新于 2019-08-13 分类于 LeetCode , LinkList

题目描述[原题链接][https://leetcode-cn.com/problems/sort-list/]

在 O(n log n) 时间复杂度和常数级空间复杂度下,对链表进行排序。

阅读全文 »

LinkList9

发表于 2019-08-09 更新于 2019-08-13 分类于 LeetCode , LinkList

题目描述[原题链接][https://leetcode-cn.com/problems/linked-list-cycle-ii/]

给定一个链表,返回链表开始入环的第一个节点。 如果链表无环,则返回 null。

​ 为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果pos是-1,则在该链表中没有环。

阅读全文 »

LinkList8

发表于 2019-08-07 更新于 2019-08-13 分类于 LeetCode , LinkList

题目描述[原题链接][https://leetcode-cn.com/problems/intersection-of-two-linked-lists/]

编写一个程序,找到两个单链表相交的起始节点。

阅读全文 »
1…10111213

Kawaii-jump

Java、C++
127 日志
11 分类
52 标签
© 2019 Kawaii-jump
由 Hexo 强力驱动 v3.9.0
|
主题 – NexT.Muse v7.2.0