Leetcode 105 从前序与中序遍历序列构造二叉树(Construct Binary Tree from Preorder and Inorder Traversal) 题解分析
Given preorder and inorder traversal of a tree, construct the binary tree. 给定一棵树的前序和中序遍历,构造出一棵二叉树
Given preorder and inorder traversal of a tree, construct the binary tree. 给定一棵树的前序和中序遍历,构造出一棵二叉树
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. 设计一个栈,支持压栈,出站,获取栈顶元素,通过常数级复杂度获取栈中的最小元素
前几天清华美院学姐的热点火了,然后仔细看了下,其实是个学姐诬陷以为其貌不扬的男同学摸她屁股 然后还在朋友圈发文想让他社死,我也是挺晚才知道这个词什么意思,然后后面我看到了这个图片,挺有意思的 本来其实也没什么想聊这个的,是在 B 站看了个吐槽这个的,然后刚好晚上乘公交的时候又碰…
之前看了 dubbo 的一些代码,在学习过程中,主要关注那些比较“高级”的内容,SPI,自适应扩展等,却忘了一些作为一个 rpc 框架最核心需要的部分,比如如何通信,序列化,网络,容错机制等等,因为其实这个最核心的就是远程调用,自适应扩展其实就是让代码可扩展性,可读性,更优雅等…
Given a singly linked list, determine if it is a palindrome. 给定一个单向链表,判断是否是回文链表