随笔分类 - 算法面试通关
摘要:Binary Tree Level Order Traversal 题目描述: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by
阅读全文
摘要:判定一棵二叉树是不是二叉平衡树。 链接:https://oj.leetcode.com/problems/balanced-binary-tree/ 题目描述: Given a binary tree, determine if it is height-balanced.For this prob
阅读全文
摘要:设计并实现最近最久未使用(Least Recently Used)缓存。 题目描述: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following
阅读全文
摘要:LeetCode相关的网上资源比较多,看到题目一定要自己做一遍,然后去学习参考其他的解法。 链接: https://oj.leetcode.com/problems/min-stack/ 题目描述: Design a stack that supports push, pop, top, and r
阅读全文